Avoid duplicating list of locales
This commit is contained in:
@@ -5,7 +5,7 @@ class Banner < ActiveRecord::Base
|
||||
|
||||
translates :title, touch: true
|
||||
translates :description, touch: true
|
||||
globalize_accessors locales: [:en, :es, :fr, :nl, :val, :pt_br]
|
||||
globalize_accessors locales: I18n.available_locales.map { |l| l.to_s.underscore.to_sym }
|
||||
|
||||
validates :title, presence: true,
|
||||
length: { minimum: 2 }
|
||||
|
||||
@@ -8,7 +8,7 @@ class Budget
|
||||
accepted_content_types: [ "application/pdf" ]
|
||||
|
||||
translates :title, :description, touch: true
|
||||
globalize_accessors locales: [:en, :es, :fr, :nl, :val, :pt_br]
|
||||
globalize_accessors locales: I18n.available_locales.map { |l| l.to_s.underscore.to_sym }
|
||||
|
||||
belongs_to :investment
|
||||
belongs_to :status, class_name: 'Budget::Investment::Status'
|
||||
|
||||
Reference in New Issue
Block a user