Skip to content

Commit fd803f0

Browse files
author
jamesprior
committed
Only make the CMS form builder the default for CMS controllers
1 parent a2b0ce3 commit fd803f0

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/controllers/cms/application_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Cms
22
class ApplicationController < ::ApplicationController
3+
default_form_builder = Cms::FormBuilder::ContentBlockFormBuilder
34
include Cms::AdminController
45

56
end

lib/cms/engine.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ class Engine < Rails::Engine
116116
ActiveSupport::Dependencies.autoload_paths += %W( #{Rails.root}/app/portlets/helpers )
117117
ActionController::Base.append_view_path DynamicView.base_path
118118
ActionController::Base.append_view_path %W( #{self.root}/app/views)
119-
ActionView::Base.default_form_builder = Cms::FormBuilder::ContentBlockFormBuilder
120119
require 'jdbc_adapter' if defined?(JRUBY_VERSION)
121120
end
122121

0 commit comments

Comments
 (0)