Skip to content

Commit 1218bcc

Browse files
committed
Merge pull request browsermedia#704 from jamesprior/master
Only make the CMS form builder the default for CMS controllers. Adjust JQuery precompile.
2 parents 760d7ce + 1ce475c commit 1218bcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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: 1 addition & 2 deletions
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

@@ -130,7 +129,7 @@ class Engine < Rails::Engine
130129
app.config.assets.precompile += ['bcms/ckeditor_inline.js', 'bcms/ckeditor.js', 'bcms/ckeditor_standard_config.js']
131130

132131
# Unsure why jquery isn't getting precompiled.
133-
app.config.assets.precompile += ['jquery.js']
132+
app.config.assets.precompile += ['jquery']
134133
end
135134
end
136135
end

0 commit comments

Comments
 (0)