Skip to content

Commit

Permalink
initializers don't run in the test environment, try doing group => all
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal-halogen committed Oct 28, 2011
1 parent d469f66 commit e73b859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tinymce/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ def asset_root
load "tinymce/assets.rake"
end

initializer "configure assets" do |app|
initializer "configure assets", :group => :all do |app|
app.config.assets.paths.unshift File.join(asset_root, 'integration')
app.config.assets.paths.unshift File.join(asset_root, 'vendor')
app.config.assets.precompile << "tinymce/*"
end

initializer "static assets" do |app|
initializer "static assets", :group => :all do |app|
if app.config.serve_static_assets
app.config.assets.paths.unshift File.join(asset_root, 'precompiled')
end
Expand Down

0 comments on commit e73b859

Please sign in to comment.