Class: Tags::CroppableImage
- Inherits:
-
Base
- Object
- Base
- Tags::CroppableImage
- Defined in:
- app/helpers/croppable/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#render ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'app/helpers/croppable/tag_helper.rb', line 20 def render = .stringify_keys add_default_name_and_id() ["input"] ||= dom_id(object, [["id"], :croppable].compact.join("_")) if object html_tag = @template_object.croppable_field_tag(@object_name, @method_name, .fetch("value") { value }, object, .except("value")) error_wrapping(html_tag) end |