Sha256: a9603c4e5e83727e0c99d5019813d517f070f9a49e302093c8e0abe1c4737bf7
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
module Gringotts module GringottsActionControllerExtension # big thanks to StackOverflow user [cowboycoded] # http://stackoverflow.com/questions/3468858/rails-3-0-engine-execute-code-in-actioncontroller 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gringotts-0.6.7 | app/controllers/gringotts/gringotts_action_controller_extension.rb |
gringotts-0.6.5 | app/controllers/gringotts/gringotts_action_controller_extension.rb |