Permalink
Browse files

Fixed the html_area helper; thanks to Github user denniscastro.

  • Loading branch information...
1 parent bb51264 commit ea9eb9b200f8714155bbabccffaa0a7f66bc2f09 @baldowl committed Oct 1, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/auto_admin_simple_theme.rb
@@ -298,7 +298,9 @@ def text_area(field, options = {})
def html_area(field, options = {})
common_option_translations! options
if AutoAdmin::AutoAdminConfiguration.use_fckeditor_plugin
- object_helper :fckeditor_textarea, field, options
+ # We cannot use object_helper because of the fckeditor_textarea's
+ # implementation details.
+ @template.send :fckeditor_textarea, 'object', field, options
else
object_helper :text_area, field, options
end
@@ -569,4 +571,3 @@ def #{helper}(field, options={}, *args, &proc)
class TableBuilder < AutoAdmin::TableBuilder(FormBuilder)
end
end
-

0 comments on commit ea9eb9b

Please sign in to comment.