using authentication for app

This commit is contained in:
2012-10-25 16:11:49 +02:00
parent 5479d3760b
commit 28ec047f1d
14 changed files with 429 additions and 40 deletions
@@ -1,4 +1,5 @@
class ApplicationController < ActionController::Base
before_filter :set_locale
layout :layout_by_resource
@@ -6,6 +7,10 @@ class ApplicationController < ActionController::Base
private
def set_locale
I18n.locale = :nl
end
def layout_by_resource
if devise_controller?
"phone"