Class: Cocooned::Tags::Add
- Includes:
- Deprecated::TagsHelper::AssociationOptions, Deprecated::TagsHelper::Renderer, AssociationOptions, Cocooned::TagsHelper::AssociationLabel, Cocooned::TagsHelper::Renderer
- Defined in:
- lib/cocooned/tags/add.rb
Overview
:nodoc:
Defined Under Namespace
Modules: AssociationOptions
Instance Method Summary collapse
-
#initialize(template, form, association, **options, &block) ⇒ Add
constructor
A new instance of Add.
- #render(as: :link) ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(template, form, association, **options, &block) ⇒ Add
Returns a new instance of Add.
28 29 30 31 |
# File 'lib/cocooned/tags/add.rb', line 28 def initialize(template, form, association, **, &block) @association = association super(template, form, **, &block) end |
Instance Method Details
#render(as: :link) ⇒ Object
33 34 35 |
# File 'lib/cocooned/tags/add.rb', line 33 def render(as: :link) template.safe_join([super, html_template]) end |