-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
globalize gem add a validation for locale field in translation table we should be explicit expose locale more details see refinery#140
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,8 @@ class Item < Refinery::Core::BaseModel | |
extend FriendlyId | ||
|
||
translates :title, :body, :slug | ||
|
||
before_save do |m| | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
xiaods
Owner
|
||
m.translation.globalized_model = self | ||
m.translation.save if m.translation.new_record? | ||
class Translation | ||
attr_accessible :locale | ||
end | ||
|
||
attr_accessible :title, :body, :content, :source, :publish_date, :expiration_date | ||
|
Why are you deleting this before_save code?