Commit 75b323bc authored by Robert Mitwicki's avatar Robert Mitwicki Committed by Philip Arndt
Browse files

Fix #84 missing mass assigning for item

parent 60d00dc9
......@@ -6,7 +6,13 @@ module Refinery
translates :title, :body
attr_accessor :locale # to hold temporarily
attr_accessible :title, :body, :source, :publish_date, :expiration_date
if defined?(Refinery::News::Item::Translation)
Refinery::News::Item::Translation.module_eval do
attr_accessible :locale
end
end
alias_attribute :content, :body
validates :title, :content, :publish_date, :presence => true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment