Remove monkey patch
Since globalize version update this is no longer needed. New Globalize version initializes globalized_model correctly when building new translations.
This commit is contained in:
committed by
voodoorai2000
parent
5d0b74cb07
commit
2e8e7b83a5
@@ -11,8 +11,6 @@ class Milestone < ApplicationRecord
|
||||
|
||||
validates :milestoneable, presence: true
|
||||
validates :publication_date, presence: true
|
||||
|
||||
before_validation :assign_model_to_translations
|
||||
validates_translation :description, presence: true, unless: -> { status_id.present? }
|
||||
|
||||
scope :order_by_publication_date, -> { order(publication_date: :asc, created_at: :asc) }
|
||||
|
||||
Reference in New Issue
Block a user