Add some view structure
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user