Sha256: 41b72c8cc06c42a4fde32a70ffd366f2502a69b101067ad94cf2d6384311bdad
Contents?: true
Size: 829 Bytes
Versions: 2
Compression:
Stored size: 829 Bytes
Contents
# frozen_string_literal: true module Kingsman module Models # Registerable is responsible for everything related to registering a new # resource (ie user sign up). module Registerable extend ActiveSupport::Concern def self.required_fields(klass) [] end module ClassMethods # A convenience method that receives both parameters and session to # initialize a user. This can be used by OAuth, for example, to send # in the user token and be stored on initialization. # # By default discards all information sent by the session by calling # new with params. def new_with_session(params, session) new(params) end Kingsman::Models.config(self, :sign_in_after_change_password) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kingsman-0.1.1 | lib/kingsman/models/registerable.rb |
kingsman-0.1.0 | lib/kingsman/models/registerable.rb |