Sha256: b0e310be9997227913355ebdc9d04ab6142278b9b9d7f7c11a99f5adb6b4f3b4
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
class Iugu::RegistrationsController < Devise::RegistrationsController after_filter :select_account, :only => [:create,:update] layout IuguSDK.alternative_layout def try_first if IuguSDK::enable_guest_user @user = User.create_guest @user.remember_me = true sign_in @user select_account flash[:notice] = I18n.t("iugu.notices.guest_login") redirect_to root_path #respond_with @user, :location => sign_up_path_for(@user) else raise ActionController::RoutingError.new("Not found") end end def after_sign_up_path_for(resource) IuguSDK::app_main_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iugusdk-1.0.0.alpha.3 | app/controllers/iugu/registrations_controller.rb |