Module: Gringotts::GringottsActionControllerExtension

Defined in:
app/controllers/gringotts/gringotts_action_controller_extension.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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