lib/gretel.rb in gretel-3.0.8 vs lib/gretel.rb in gretel-3.0.9
- old
+ new
@@ -14,12 +14,12 @@
# Returns the path from with breadcrumbs are loaded. Default is +config/breadcrumbs.rb+
# in the app and all loaded engines. Breadcrumbs set in the app will override
# breadcrumbs set in engines.
def breadcrumb_paths
@breadcrumb_paths ||= begin
- engines = Rails::Application::Railties.respond_to?(:engines) ?
- Rails::Application::Railties.engines :
+ engines = Rails::Engine::Railties.respond_to?(:engines) ?
+ Rails::Engine::Railties.engines :
Rails::Engine.subclasses.map(&:instance)
engine_roots = engines.map { |e| e.config.root }
[*engine_roots, Rails.root].map do |root|
@@ -77,6 +77,6 @@
yield self
end
end
end
-ActionView::Base.send :include, Gretel::ViewHelpers
\ No newline at end of file
+ActionView::Base.send :include, Gretel::ViewHelpers