Module: SimpleTokenAuth::AuthenticateWithToken

Defined in:
lib/simple_token_auth/authenticate_with_token.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/simple_token_auth/authenticate_with_token.rb', line 13

def method_missing(method, *args, &block)
  if m = method.to_s.match(/authenticate_(.+)_from_token!/)
    send :authenticate_from_token!, m[1]
  else
    super
  end
end