diff options
author | George Claghorn <george@basecamp.com> | 2018-12-31 12:16:21 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-12-31 12:16:21 -0500 |
commit | f2a5c1a541342a886ed3de3b9a15ce06b6bdcde5 (patch) | |
tree | e00ea7ab26fe3c3987a1db7373dafd3e82c5fe94 /app/helpers/action_text | |
parent | dce22ba477e015fad910b17e2f148f96215b4ff7 (diff) | |
download | rails-f2a5c1a541342a886ed3de3b9a15ce06b6bdcde5.tar.gz rails-f2a5c1a541342a886ed3de3b9a15ce06b6bdcde5.tar.bz2 rails-f2a5c1a541342a886ed3de3b9a15ce06b6bdcde5.zip |
Fix adding a rich_text_area to a form with no model
Diffstat (limited to 'app/helpers/action_text')
-rw-r--r-- | app/helpers/action_text/tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/action_text/tag_helper.rb b/app/helpers/action_text/tag_helper.rb index c7ba416880..0be2d2af36 100644 --- a/app/helpers/action_text/tag_helper.rb +++ b/app/helpers/action_text/tag_helper.rb @@ -40,7 +40,7 @@ module ActionView::Helpers def render options = @options.stringify_keys add_default_name_and_id(options) - options["input"] ||= dom_id(object, [options["id"], :trix_input].compact.join("_")) + options["input"] ||= dom_id(object, [options["id"], :trix_input].compact.join("_")) if object @template_object.rich_text_area_tag(options.delete("name"), editable_value, options) end |