Sha256: 87e0c1ff456fd2d3da10d7091e6cad55ba077dc99e0b18820f33b2912bfec66a

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

module Authentifyd
  class ApplicationController < ActionController::Base
    include Localyzed::LocalyzedController
    helper Authentifyd::ApplicationHelper
  end
end

class ActionController::Base  
  def after_sign_out_path_for(resource_or_scope)
    params[:callback_url] || session[:referrer] || root_path
  end
  
  alias_method :orig_after_sign_in_path_for, :after_sign_in_path_for
  def after_sign_in_path_for(resource_or_scope)
    Authentifyd.default_after_sign_in_path || orig_after_sign_in_path_for(resource_or_scope)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authentifyd-0.0.12 app/controllers/authentifyd/application_controller.rb
authentifyd-0.0.11 app/controllers/authentifyd/application_controller.rb