Module: Reflex::Authlogic::Account::ClassMethods
- Defined in:
- lib/reflex/authlogic/account.rb
Instance Method Summary collapse
Instance Method Details
#create_for_react(provider, react_profile = nil) ⇒ Object
44 45 46 47 48 49 50 51 52 53 |
# File 'lib/reflex/authlogic/account.rb', line 44 def create_for_react(provider, react_profile = nil) record = new() connection = record.reflex_connections.build(:provider => provider) record.react_profile = react_profile if record.respond_to?(:react_profile=) record.persistence_token = ::Authlogic::Random.hex_token if record.respond_to?(:persistence_token=) record.save_without_session_maintenance [record, connection] end |
#find_by_react_user_id(react_id) ⇒ Object
39 40 41 42 |
# File 'lib/reflex/authlogic/account.rb', line 39 def find_by_react_user_id(react_id) connection = Reflex::Authlogic::Connection.(class_name, react_id) connection && connection. end |