Module: Authifer::DataHelper
- Defined in:
- lib/authifer/data_helper.rb
Instance Method Summary collapse
- #build_user(attributes = {}) ⇒ Object
- #create_user(user_attributes) ⇒ Object
- #find_user(attributes) ⇒ Object
Instance Method Details
#build_user(attributes = {}) ⇒ Object
11 12 13 |
# File 'lib/authifer/data_helper.rb', line 11 def build_user(attributes={}) User.new(attributes) end |
#create_user(user_attributes) ⇒ Object
7 8 9 |
# File 'lib/authifer/data_helper.rb', line 7 def create_user(user_attributes) User.create(user_attributes) end |
#find_user(attributes) ⇒ Object
3 4 5 |
# File 'lib/authifer/data_helper.rb', line 3 def find_user(attributes) User.find_by(attributes) end |