app/views/application/edit.html.haml in five-two-nw-olivander-0.2.0.7 vs app/views/application/edit.html.haml in five-two-nw-olivander-0.2.0.8
- old
+ new
@@ -1,7 +1,9 @@
- resource = (@_effective_resource || Effective::Resource.new(controller_path))
- @resource = instance_variable_get('@' + resource.name) if resource.name
- if @resource
+ = render_optional_partial 'form_before'
.row
.col-12{ data: { controller: [controller.class.name.gsub('Controller', '').underscore.dasherize.gsub('/', '--'), action_name].join('-') } }
= render_resource_form(@resource)
+ = render_optional_partial 'form_after'