Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #88 from mitfik/Fix_86_cant_mass_assign_for_main_i…

…tem_attributes

Fix #86 Can't mass-assign main item attributes
  • Loading branch information...
commit 396ddefa1367237d2a2341e5d21cebd68f1311b6 2 parents 499b799 + 9bc1032
@parndt parndt authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  app/models/refinery/news/item.rb
View
1  app/models/refinery/news/item.rb
@@ -6,6 +6,7 @@ class Item < Refinery::Core::BaseModel
translates :title, :body
attr_accessor :locale # to hold temporarily
+ attr_accessible :title, :body, :source, :publish_date, :expiration_date
alias_attribute :content, :body
validates :title, :content, :publish_date, :presence => true
Please sign in to comment.
Something went wrong with that request. Please try again.