app/helpers/trestle/form_helper.rb in trestle-0.8.7 vs app/helpers/trestle/form_helper.rb in trestle-0.8.8

- old
+ new

@@ -1,9 +1,9 @@ module Trestle module FormHelper def trestle_form_for(instance, options={}, &block) options[:builder] ||= Form::Builder - options[:as] ||= admin.admin_name.singularize + options[:as] ||= admin.parameter_name options[:data] ||= {} options[:data].merge!(remote: true, type: :html, behavior: "trestle-form", turbolinks: false) form_for(instance, options) do |f|