このコミットが含まれているのは:
@@ -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?)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする