app/helpers/extface/application_helper.rb in extface-0.4.0 vs app/helpers/extface/application_helper.rb in extface-0.4.1a

- old
+ new

@@ -29,11 +29,11 @@ content_tag(:div, class: 'panel panel-default') do content_tag(:div, class: 'panel-heading') do "#{driver.class::NAME} #{t('.settings')}".html_safe end + content_tag(:div, class: 'panel-body') do - render "extface/driver/#{driver.class.name.demodulize.underscore}/settings", form: form + render "#{driver.class.name.underscore}/settings", form: form end end end def driver_control(driver) @@ -41,10 +41,10 @@ content_tag(:div, class: 'panel-heading') do "#{driver.class::NAME} #{t('.control_panel')}".html_safe end + content_tag(:div, class: 'panel-body') do content_tag(:div, class: 'col-sm-8') do - control_partial = "extface/driver/#{driver.class.name.demodulize.underscore}/control" + control_partial = "#{driver.class.name.underscore}/control" begin render control_partial rescue ActionView::MissingTemplate case when driver.fiscal? then