lib/nanoc/rule_dsl/routing_rule.rb in nanoc-4.12.21 vs lib/nanoc/rule_dsl/routing_rule.rb in nanoc-4.13.0
- old
+ new
@@ -18,10 +18,10 @@
site: Nanoc::Core::Site,
view_context: Nanoc::Core::ViewContextForPreCompilation,
] => C::Any
def apply_to(rep, site:, view_context:)
context = Nanoc::RuleDSL::RoutingRuleContext.new(
- rep: rep, site: site, view_context: view_context,
+ rep:, site:, view_context:,
)
context.instance_exec(matches(rep.item.identifier), &@block)
end
end