Sha256: 49068bfbbb48023f9cc5bba0537644076946615c47f368e59aa87f7dabd30ddd
Contents?: true
Size: 540 Bytes
Versions: 3
Compression:
Stored size: 540 Bytes
Contents
class UnlocksController < ApplicationController include Devise::Controllers::InternalHelpers include Devise::Controllers::Common # GET /resource/unlock?unlock_token=abcdef def show self.resource = resource_class.unlock!(:unlock_token => params[:unlock_token]) if resource.errors.empty? set_flash_message :notice, :unlocked sign_in_and_redirect(resource_name, resource) else render_with_scope :new end end protected def send_instructions_with :send_unlock_instructions end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
devise-0.9.2 | app/controllers/unlocks_controller.rb |
devise-0.9.1 | app/controllers/unlocks_controller.rb |
devise-0.9.0 | app/controllers/unlocks_controller.rb |