Module: Opro::Controllers::ApplicationControllerHelper::ClassMethods

Defined in:
lib/opro/controllers/application_controller_helper.rb

Instance Method Summary collapse

Instance Method Details

#allow_oauth!(options = {}) ⇒ Object



23
24
25
# File 'lib/opro/controllers/application_controller_helper.rb', line 23

def allow_oauth!(options = {})
  prepend_before_filter :allow_oauth, options
end

#disallow_oauth!(options = {}) ⇒ Object



27
28
29
30
# File 'lib/opro/controllers/application_controller_helper.rb', line 27

def disallow_oauth!(options = {})
  prepend_before_filter :disallow_oauth,  options
  skip_before_filter    :allow_oauth,     options
end