Commit f6e7559f2beeb2f2098d11e4b4fa5033010c52ec
1 parent
6d57ec81
Exists in
master
and in
29 other branches
rails3: make html of RawHTMLBlock mass-assignable
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/models/raw_html_block.rb
@@ -6,6 +6,8 @@ class RawHTMLBlock < Block | @@ -6,6 +6,8 @@ class RawHTMLBlock < Block | ||
6 | 6 | ||
7 | settings_items :html, :type => :text | 7 | settings_items :html, :type => :text |
8 | 8 | ||
9 | + attr_accessible :html | ||
10 | + | ||
9 | def content(args={}) | 11 | def content(args={}) |
10 | (title.blank? ? '' : block_title(title)).html_safe + html.to_s.html_safe | 12 | (title.blank? ? '' : block_title(title)).html_safe + html.to_s.html_safe |
11 | end | 13 | end |