lib/trestle/configuration.rb in trestle-0.8.4 vs lib/trestle/configuration.rb in trestle-0.8.5

- old
+ new

@@ -62,11 +62,11 @@ # List of parameters that should persist across requests when paginating or reordering option :persistent_params, [:sort, :order, :scope] # List of methods to try calling on an instance when displayed by the `display` helper - option :display_methods, [:display_name, :full_name, :name, :title, :username, :login, :email, :to_s] + option :display_methods, [:display_name, :full_name, :name, :title, :username, :login, :email] # Default adapter class used by all admin resources option :default_adapter, Adapters.compose(Adapters::ActiveRecordAdapter, Adapters::DraperAdapter) # Register a custom form field class @@ -82,9 +82,15 @@ hooks[name.to_s] << block end # List of i18n keys to pass into the Trestle.i18n JavaScript object option :javascript_i18n_keys, ["admin.confirmation.title", "admin.confirmation.delete", "admin.confirmation.cancel"] + + + ## Debugging + + # Enable debugging of form errors + option :debug_form_errors, Rails.env.development? ## Callbacks Action = Struct.new(:options, :block)