Module: Facepalm::Rails::Controller::OauthAccess::ClassMethods
- Defined in:
- lib/facepalm/rails/controller/oauth_access.rb
Instance Method Summary collapse
-
#facepalm_authentication(*permissions) ⇒ Object
Requires Facebook authentication for the whole set of controller actions.
Instance Method Details
#facepalm_authentication(*permissions) ⇒ Object
Requires Facebook authentication for the whole set of controller actions. Use it to setup a given set of permissions for the whole controller
36 37 38 39 40 41 42 43 |
# File 'lib/facepalm/rails/controller/oauth_access.rb', line 36 def facepalm_authentication(*) = . cattr_accessor :facepalm_authentication_filter self.facepalm_authentication_filter = AccessFilter.new(*) before_filter(facepalm_authentication_filter, ) end |