lib/hanami/routing/parsing/parser.rb in hanami-router-1.0.1 vs lib/hanami/routing/parsing/parser.rb in hanami-router-1.1.0.beta1
- old
+ new
@@ -48,10 +48,10 @@
# @since 0.2.0
# @api private
def self.require_parser(parser)
require "hanami/routing/parsing/#{ parser }_parser"
- parser = Utils::String.new(parser).classify
+ parser = Utils::String.classify(parser)
Utils::Class.load!("Hanami::Routing::Parsing::#{ parser }Parser").new
rescue LoadError, NameError
raise UnknownParserError.new(parser)
end
end