Class: Facepalm::Rails::Controller::OauthAccess::AccessFilter
- Inherits:
-
Object
- Object
- Facepalm::Rails::Controller::OauthAccess::AccessFilter
- Defined in:
- lib/facepalm/rails/controller/oauth_access.rb
Overview
A filter class for Rails
Instance Method Summary collapse
- #filter(controller) ⇒ Object
-
#initialize(*permissions) ⇒ AccessFilter
constructor
A new instance of AccessFilter.
Constructor Details
#initialize(*permissions) ⇒ AccessFilter
Returns a new instance of AccessFilter.
15 16 17 |
# File 'lib/facepalm/rails/controller/oauth_access.rb', line 15 def initialize(*) @permissions = end |
Instance Method Details
#filter(controller) ⇒ Object
19 20 21 |
# File 'lib/facepalm/rails/controller/oauth_access.rb', line 19 def filter(controller) controller.send(:facepalm_require_authentication, *@permissions) end |