Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Markech
refinerycms-news
Commits
60d00dc9
Commit
60d00dc9
authored
Apr 01, 2012
by
Philip Arndt
Browse files
Merge pull request #89 from mitfik/Fix_86_can_not_mass_assign_for_main_item_attributes
Fix #86 Can't mass-assign main item attributes
parents
86d810c6
461a5371
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/refinery/news/item.rb
View file @
60d00dc9
...
...
@@ -6,6 +6,7 @@ module Refinery
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment