Sha256: 98bb7d2b156e1f0bd767ff8f0587ae86e35ed1377797f563bc9abed2af9517c9
Contents?: true
Size: 441 Bytes
Versions: 3
Compression:
Stored size: 441 Bytes
Contents
class DeviseInvitable::RegistrationsController < Devise::RegistrationsController protected def build_resource(hash = nil) hash ||= resource_params || {} if hash[:email] self.resource = resource_class.where(:email => hash[:email], :encrypted_password => '').first if self.resource self.resource.attributes = hash self.resource.accept_invitation end end self.resource ||= super end end
Version data entries
3 entries across 3 versions & 1 rubygems