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
36748a18
Commit
36748a18
authored
Apr 02, 2012
by
Philip Arndt
Browse files
Fixed some problems with attr_accessible usage.
parent
75b323bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/refinery/news/item.rb
View file @
36748a18
...
...
@@ -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
...
...
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