Skip to content

Commit

Permalink
Replace Nanoc's LinkTo with Rails' UrlHelper
Browse files Browse the repository at this point in the history
Nanoc's link helpers expect classes to be provided in a string but now
we're using arrays internally throughout so it makes sense to use the
Rails version.
  • Loading branch information
peteryates committed Nov 2, 2023
1 parent 0147f3f commit be0fe9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/lib/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Application < Rails::Application; end

Dir.glob(File.join('./lib', '**', '*.rb')).sort.each { |f| require f }

use_helper ActionView::Helpers::UrlHelper
use_helper Nanoc::Helpers::Rendering
use_helper Nanoc::Helpers::LinkTo
use_helper Nanoc::Helpers::XMLSitemap
use_helper Helpers::LinkHelpers
use_helper Helpers::TitleAnchorHelpers
Expand Down

0 comments on commit be0fe9c

Please sign in to comment.