このコミットが含まれているのは:
2026-10-18 15:36:09 +09:00
コミット 20085d5017
3個のファイルの変更、151行の追加、11行の削除
+3 -3
ファイルの表示
@@ -1,4 +1,6 @@
class Locale < ApplicationRecord
attr_accessor :certified_tag_names_path
before_save :lock_tag_creation!, if: :will_generate_tag_names?
after_save :generate_tag_names!, if: :needs_tag_names?
@@ -15,9 +17,7 @@ class Locale < ApplicationRecord
deprecated_at.nil? && (will_save_change_to_code? || will_save_change_to_deprecated_at?)
end
def lock_tag_creation!
SharedResourceIdAllocator.lock_space!(Tag, 'tags')
end
def lock_tag_creation! = SharedResourceIdAllocator.lock_space!(Tag, 'tags')
def needs_tag_names?
deprecated_at.nil? && (saved_change_to_code? || saved_change_to_deprecated_at?)