lib/generators/trestle/install/templates/trestle.rb.erb in trestle-0.8.2 vs lib/generators/trestle/install/templates/trestle.rb.erb in trestle-0.8.3
- old
+ new
@@ -51,9 +51,29 @@
# end
# end
# == Extension Options
#
+ # Specify helper modules to expose to the admin.
+ #
+ # config.helper :all
+
+ # Register callbacks to run before, after or around all Trestle actions.
+ #
+ # config.before_action do |controller|
+ # Rails.logger.debug("Before action")
+ # end
+ #
+ # config.after_action do |controller|
+ # Rails.logger.debug("After action")
+ # end
+ #
+ # config.around_action do |controller, block|
+ # Rails.logger.debug("Around action (before)")
+ # block.call
+ # Rails.logger.debug("Around ation (after)")
+ # end
+
# Specify a custom hook to be injected into the admin.
#
# config.hook(:stylesheets) do
# stylesheet_link_tag "custom"
# end