lib/cells/railtie.rb in cells-3.8.0 vs lib/cells/railtie.rb in cells-3.8.1
- old
+ new
@@ -1,16 +1,20 @@
require "rails/railtie"
module Cells
- class Railtie < Rails::Railtie
+ class Railtie < ::Rails::Railtie
initializer "cells.attach_router" do |app|
Cell::Base.class_eval do
include app.routes.url_helpers
end
end
initializer "cells.setup_view_paths" do |app|
Cell::Base.setup_view_paths!
+ end
+
+ initializer "cells.setup_engines_view_paths" do |app|
+ Cells::Engines.append_engines_view_paths_for(app.config.action_controller)
end
rake_tasks do
load "cells/cells.rake"
end