lib/insales/controller/session_actions.rb in insales_api-0.1.3 vs lib/insales/controller/session_actions.rb in insales_api-0.2.0

- old
+ new

@@ -11,10 +11,11 @@ end def create account = find_account_by_request return render_not_found unless account + store_location(insales_success_login_path) insales_autologin_start(account) end def autologin @@ -29,11 +30,12 @@ insales_logout redirect_to action: :new end protected - def render_not_found - flash.now[:error] = t(:'.account_not_found').html_safe - render action: :new - end + + def render_not_found + flash.now[:error] = t(:'.account_not_found').html_safe + render action: :new + end end end