Module: Gringotts::GringottsActionControllerExtension
- Defined in:
- app/controllers/gringotts/gringotts_action_controller_extension.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
big thanks to StackOverflow user [cowboycoded] stackoverflow.com/questions/3468858/rails-3-0-engine-execute-code-in-actioncontroller.
Class Method Details
.included(base) ⇒ Object
big thanks to StackOverflow user [cowboycoded] stackoverflow.com/questions/3468858/rails-3-0-engine-execute-code-in-actioncontroller
7 8 9 10 11 12 13 |
# File 'app/controllers/gringotts/gringotts_action_controller_extension.rb', line 7 def self.included(base) # make our main rails app include our special GringottsHelper base.send(:include, GringottsHelper) # add a before_filter to ensure that users are being verified base.before_filter :gringotts_protego! end |