lib/trestle/configuration.rb in trestle-0.8.5 vs lib/trestle/configuration.rb in trestle-0.8.6
- old
+ new
@@ -81,10 +81,15 @@
def hook(name, &block)
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"]
+ option :javascript_i18n_keys, ["admin.confirmation.title", "admin.confirmation.delete", "admin.confirmation.cancel", "trestle.dialog.error", "admin.buttons.ok"]
+
+ # List of load paths for where to find admin definitions
+ option :load_paths, [
+ -> { ActiveSupport::Dependencies.autoload_paths.grep(/\/app\/admin\Z/) }
+ ]
## Debugging
# Enable debugging of form errors