lib/roda/plugins/autoload_named_routes.rb in roda-3.85.0 vs lib/roda/plugins/autoload_named_routes.rb in roda-3.86.0
- old
+ new
@@ -52,10 +52,10 @@
nil
end
# Eagerly load all autoloaded named routes when freezing the application.
def freeze
- opts.delete(:autoload_named_route_files).each{|file| require file}
+ opts.delete(:autoload_named_route_files).each{|file| require file} unless opts.frozen?
super
end
end
end