Module: Devise::Models::KoalaConnectable::ClassMethods

Defined in:
lib/devise_koala_connectable/model.rb

Instance Method Summary collapse

Instance Method Details

#authenticate_with_koala(attributes = {}) ⇒ Object

Authenticate a user based on Facebook Identifier.



132
133
134
135
136
# File 'lib/devise_koala_connectable/model.rb', line 132

def authenticate_with_koala(attributes = {})
  if attributes["id"].present?
    self.find_for_koala(attributes["id"])
  end
end

#koala_auto_create_account?Boolean

Alias don’t work for some reason, so…a more Ruby-ish alias for koala_auto_create_account.

Returns:

  • (Boolean)


126
127
128
# File 'lib/devise_koala_connectable/model.rb', line 126

def koala_auto_create_account?
  self.
end