Module: Rubee::AuthTokenable::ClassMethods

Defined in:
lib/rubee/controllers/extensions/auth_tokenable.rb

Instance Method Summary collapse

Instance Method Details

#_auth_methodsObject



84
85
86
# File 'lib/rubee/controllers/extensions/auth_tokenable.rb', line 84

def _auth_methods
  @auth_methods || []
end

#auth_methods(*args) ⇒ Object



75
76
77
78
79
80
81
82
# File 'lib/rubee/controllers/extensions/auth_tokenable.rb', line 75

def auth_methods(*args)
  @auth_methods ||= []
  @auth_methods.concat(args.map(&:to_sym)).uniq!

  @auth_methods.each do |method|
    around(method, :handle_auth)
  end
end