Sha256: 38a763e4e060c27ea250ba862dcc38d1603aac9d4f86f80d2236af37ce0566e9

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

class Puffer::Sessions::Devise < Puffer::Sessions::Base
  # include Devise::Controllers::InternalHelpers

  # GET /resource/sign_in
  # def new
  #   @record = User.new
  # end

  # POST /resource/sign_in
  # def create
  #   @record = warden.authenticate!(:scope => :user, :recall => "#{controller_path}#new")
  #   sign_in(user, @record)
  #   respond_with @record, :location => params[:return_to]
  # end

  # GET /resource/sign_out
  # def destroy
  #   signed_in = signed_in?(resource_name)
  #   Devise.sign_out_all_scopes ? sign_out : sign_out(resource_name)
  #   set_flash_message :notice, :signed_out if signed_in

  #   # We actually need to hardcode this, as Rails default responder doesn't
  #   # support returning empty response on GET request
  #   respond_to do |format|
  #     format.any(*navigational_formats) { redirect_to after_sign_out_path_for(resource_name) }
  #     format.all do
  #       method = "to_#{request_format}"
  #       text = {}.respond_to?(method) ? {}.send(method) : ""
  #       render :text => text, :status => :ok
  #     end
  #   end
  # end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer-0.1.1 lib/puffer/backends/controllers/sessions/devise.rb