update coffee model

This commit is contained in:
2012-11-27 14:19:37 +01:00
parent ecdac7e8c4
commit e65dc584a4
3 changed files with 36 additions and 29 deletions
+5 -1
View File
@@ -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