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
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/models/registerable.rb
rmello-devise-2.1.0.2 lib/devise/models/registerable.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/lib/devise/models/registerable.rb
devise-2.1.0 lib/devise/models/registerable.rb
devise-2.1.0.rc2 lib/devise/models/registerable.rb
upstream-devise-2.1.0.rc lib/devise/models/registerable.rb
devise-2.1.0.rc lib/devise/models/registerable.rb