Sha256: feafc1ffe932a6dd9303b506dc30420088d3a9aea01d0a5bea73e40e54f43f4e

Contents?: true

Size: 725 Bytes

Versions: 87

Compression:

Stored size: 725 Bytes

Contents

module Devise
  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
      end
    end
  end
end

Version data entries

87 entries across 87 versions & 14 rubygems

Version Path
devise-4.3.0 lib/devise/models/registerable.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/lib/devise/models/registerable.rb
devise-4.2.1 lib/devise/models/registerable.rb
devise-4.2.0 lib/devise/models/registerable.rb
devise-3.5.10 lib/devise/models/registerable.rb
devise-4.0.3 lib/devise/models/registerable.rb
devise-4.1.1 lib/devise/models/registerable.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/lib/devise/models/registerable.rb
devise-4.1.0 lib/devise/models/registerable.rb
devise-3.5.9 lib/devise/models/registerable.rb
devise-4.0.2 lib/devise/models/registerable.rb
devise-4.0.1 lib/devise/models/registerable.rb
devise-3.5.8 lib/devise/models/registerable.rb
devise-3.5.7 lib/devise/models/registerable.rb
devise-4.0.0 lib/devise/models/registerable.rb
devise-4.0.0.rc2 lib/devise/models/registerable.rb
devise-4.0.0.rc1 lib/devise/models/registerable.rb
devise-3.5.6 lib/devise/models/registerable.rb
devise-3.5.5 lib/devise/models/registerable.rb
devise-3.5.4 lib/devise/models/registerable.rb