Fix typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user