update coffee model
This commit is contained in:
@@ -13,7 +13,11 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def layout_by_resource
|
||||
if devise_controller?
|
||||
session[:user_return_to] =~ /obtain_token/ ? 'obtain_token' : 'theme1'
|
||||
case session[:user_return_to]
|
||||
when /\/user\// then 'phone'
|
||||
when /obtain_token/ then 'obtain_token'
|
||||
else 'theme1'
|
||||
end
|
||||
else
|
||||
"application"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user