Class: Cocooned::Tags::Add

Overview

:nodoc:

Defined Under Namespace

Modules: AssociationOptions

Instance Method Summary collapse

Methods inherited from Base

create

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, **options, &block)
  @association = association
  super(template, form, **options, &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