Sha256: c7eceeffb2a06362d033c489860db80fc74999b1bc2b6b0b5dd8b5921279ba21
Contents?: true
Size: 460 Bytes
Versions: 5
Compression:
Stored size: 460 Bytes
Contents
class DeviseInvitable::RegistrationsController < Devise::RegistrationsController protected def build_resource(*args) hash = args.pop || 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(hash, *args) end end
Version data entries
5 entries across 5 versions & 1 rubygems