Commit 36748a18 authored by Philip Arndt's avatar Philip Arndt
Browse files

Fixed some problems with attr_accessible usage.

parent 75b323bc
......@@ -7,11 +7,9 @@ module Refinery
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
attr_accessible :title, :body, :content, :source, :publish_date, :expiration_date
class Translation
attr_accessible :locale
end
alias_attribute :content, :body
......
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