aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/action_text/tag_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/action_text/tag_helper.rb')
-rw-r--r--app/helpers/action_text/tag_helper.rb2
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