diff --git a/app/models/admin_notification.rb b/app/models/admin_notification.rb index ef632b1f1..4291206bc 100644 --- a/app/models/admin_notification.rb +++ b/app/models/admin_notification.rb @@ -1,8 +1,8 @@ class AdminNotification < ActiveRecord::Base include Notifiable - translates :title, touch: :true - translates :body, touch: :true + translates :title, touch: true + translates :body, touch: true globalize_accessors validates :title, presence: true diff --git a/app/models/legislation/draft_version.rb b/app/models/legislation/draft_version.rb index 02020dda9..18e4489b7 100644 --- a/app/models/legislation/draft_version.rb +++ b/app/models/legislation/draft_version.rb @@ -7,7 +7,7 @@ class Legislation::DraftVersion < ActiveRecord::Base translates :title, touch: true translates :changelog, touch: true translates :body, touch: true - translates :body_html, touch: true + translates :body_html, touch: true translates :toc_html, touch: true globalize_accessors diff --git a/app/models/legislation/process.rb b/app/models/legislation/process.rb index 39c3cb8e6..bc3df6be4 100644 --- a/app/models/legislation/process.rb +++ b/app/models/legislation/process.rb @@ -9,10 +9,10 @@ class Legislation::Process < ActiveRecord::Base acts_as_paranoid column: :hidden_at acts_as_taggable_on :customs - translates :title, touch: :true - translates :summary, touch: :true - translates :description, touch: :true - translates :additional_info, touch: :true + translates :title, touch: true + translates :summary, touch: true + translates :description, touch: true + translates :additional_info, touch: true globalize_accessors PHASES_AND_PUBLICATIONS = %i(debate_phase allegations_phase proposals_phase draft_publication result_publication).freeze diff --git a/app/models/legislation/question.rb b/app/models/legislation/question.rb index 859990928..0c9a5703f 100644 --- a/app/models/legislation/question.rb +++ b/app/models/legislation/question.rb @@ -3,7 +3,7 @@ class Legislation::Question < ActiveRecord::Base include ActsAsParanoidAliases include Notifiable - translates :title, touch: :true + translates :title, touch: true globalize_accessors belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id' diff --git a/app/models/legislation/question_option.rb b/app/models/legislation/question_option.rb index 2282c31d3..1ee46ee90 100644 --- a/app/models/legislation/question_option.rb +++ b/app/models/legislation/question_option.rb @@ -2,7 +2,7 @@ class Legislation::QuestionOption < ActiveRecord::Base acts_as_paranoid column: :hidden_at include ActsAsParanoidAliases - translates :value, touch: :true + translates :value, touch: true globalize_accessors belongs_to :question, class_name: 'Legislation::Question', foreign_key: 'legislation_question_id', inverse_of: :question_options