Module: Facebooker::Merb::Controller::ClassMethods
- Defined in:
- lib/merb_facebooker/controller.rb
Instance Method Summary collapse
- #ensure_application_is_installed_by_facebook_user(options = {}) ⇒ Object
-
#ensure_authenticated_to_facebook(options = {}) ⇒ Object
Creates a filter which reqires a user to have already authenticated to Facebook before executing actions.
Instance Method Details
#ensure_application_is_installed_by_facebook_user(options = {}) ⇒ Object
257 258 259 |
# File 'lib/merb_facebooker/controller.rb', line 257 def ensure_application_is_installed_by_facebook_user( = {}) before :ensure_application_is_installed_by_facebook_user, end |
#ensure_authenticated_to_facebook(options = {}) ⇒ Object
Creates a filter which reqires a user to have already authenticated to Facebook before executing actions. Accepts the same optional options hash which before_filter and after_filter accept.
253 254 255 |
# File 'lib/merb_facebooker/controller.rb', line 253 def ensure_authenticated_to_facebook( = {}) before :ensure_authenticated_to_facebook, end |