Class: Maquina::Application::Edit

Inherits:
Phlex::HTML
  • Object
show all
Includes:
Maquina::ApplicationView
Defined in:
app/views/maquina/application/edit.rb

Instance Method Summary collapse

Methods included from Maquina::ApplicationView

#attribute_human_name, #button_to, #image_tag, #link_to, #model_human_name, #svg_icon

Constructor Details

#initialize(resource:) ⇒ Edit

Returns a new instance of Edit.



8
9
10
# File 'app/views/maquina/application/edit.rb', line 8

def initialize(resource:)
  @resource = resource
end

Instance Method Details

#view_templateObject



12
13
14
# File 'app/views/maquina/application/edit.rb', line 12

def view_template
  render Maquina::Application::Form.new(resource: @resource)
end