lib/generators/trestle/install/templates/trestle.rb.erb in trestle-0.9.6 vs lib/generators/trestle/install/templates/trestle.rb.erb in trestle-0.9.7

- old
+ new

@@ -68,10 +68,11 @@ # == Extension Options # # Specify helper modules to expose to the admin. # # config.helper :all + # config.helper -> { CustomHelper } # Register callbacks to run before, after or around all Trestle actions. # # config.before_action do |controller| # Rails.logger.debug("Before action") @@ -121,10 +122,10 @@ # class CustomFormField # def initialize(builder, template, name, options={}, &block); end # def render; end # end # - # config.form_field :custom, CustomFormField + # config.form_field :custom, -> { CustomFormField } # == Debugging Options # # Enable debugging of form errors. Defaults to true in development mode. #