Add some view structure

This commit is contained in:
2014-04-17 23:05:35 +02:00
parent 45f8ea1308
commit 2a5331471c
23 changed files with 207 additions and 115 deletions
@@ -1,5 +1,8 @@
class ApplicationController < ActionController::Base
before_action :set_locale
if Rails.env.development?
before_action :force_reloads
end
layout :layout_by_resource
#protect_from_forgery
@@ -66,4 +69,8 @@ private
format.json { render json: {ok: false}, status: 404 }
end
end
def force_reloads
load Rails.root.join('config/initializers/custom_form_builder.rb')
end
end