Module: OAuth::Controllers::ApplicationControllerMethods::ClassMethods

Defined in:
lib/oauth/controllers/application_controller_methods.rb

Instance Method Summary collapse

Instance Method Details

#oauthenticate(options = {}) ⇒ Object



13
14
15
16
17
18
# File 'lib/oauth/controllers/application_controller_methods.rb', line 13

def oauthenticate(options={})
  filter_options = {}
  filter_options[:only]   = options.delete(:only) if options[:only]
  filter_options[:except] = options.delete(:except) if options[:except]
  before_filter Filter.new(options), filter_options
end