Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since the removal of rails/init.rb, Rails fails to load the helpers. After investigation, it seems that Rails 2.3.5 handles rails/init.rb in a special way creating an instance of class GemPlugin < Plugin. Rails 3 doesn't support that feature, I would have to create a Railtie. So, let keep this branch compatible with Rails 2.3.x and create a new branch for Rails 3.
- Loading branch information
Showing
7 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
require 'breadcrumbs_on_rails' | ||
|
||
ActionController::Base.send :include, BreadcrumbsOnRails::ControllerMixin | ||
|
||
Rails.logger.info("** BreadcrumbsOnRails: initialized properly") if defined?(Rails) | ||
require File.join(File.dirname(__FILE__), 'rails', 'init') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,4 +104,4 @@ def render_breadcrumbs(options = {}, &block) | |
|
||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'breadcrumbs_on_rails' | ||
|
||
ActionController::Base.send :include, BreadcrumbsOnRails::ControllerMixin | ||
|
||
RAILS_DEFAULT_LOGGER.info("** BreadcrumbsOnRails: initialized properly") if defined?(RAILS_DEFAULT_LOGGER) |