Sha256: 4591666211a77836a877614087a1283c3a9ea8fda35dcc5ca48a65576bb4166a
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
class Iugu::SessionsController < Devise::SessionsController after_filter :select_account, :only => :create layout IuguSDK.alternative_layout def after_sign_in_path_for(resource_or_scope) puts params params[:user].try(:[], :user_invitation).blank? ? IuguSDK::app_main_url : invitation_url end def after_sign_out_path_for(resource_or_scope) IuguSDK::app_root_url end private def invitation_url edit_invite_url(:invitation_token => params[:user][:user_invitation]) end end
Version data entries
5 entries across 5 versions & 1 rubygems