lib/roda/plugins/_before_hook.rb in roda-3.11.0 vs lib/roda/plugins/_before_hook.rb in roda-3.12.0
- old
+ new
@@ -29,10 +29,10 @@
private
# Build a _roda_before method that calls each _roda_before_* method
# in order.
def def_roda_before
- meths = private_instance_methods.grep(/\A_roda_before_\d\d\z/).sort.join(';')
+ meths = private_instance_methods.grep(/\A_roda_before_\d\d/).sort.join(';')
class_eval("def _roda_before; #{meths} end", __FILE__, __LINE__)
private :_roda_before
end
# Modify rack app route block to use before hook.