lib/oxymoron.rb in oxymoron-1.2.4 vs lib/oxymoron.rb in oxymoron-1.2.5
- old
+ new
@@ -41,13 +41,13 @@
route.path.required_names.each do |required_name|
if requirement = route.requirements[required_name.to_sym]
if requirement.is_a? Regexp
requirement = requirement.to_s[7..-2]
end
- url_matcher = path.gsub(':'+required_name, "{#{required_name}:(?:#{requirement})}#{ui_params}")
- url_matcher = "$urlMatcherFactoryProvider.compile(\"#{url_matcher}\")"
+ url_matcher = path.gsub(':'+required_name, "{#{required_name}:(?:#{requirement})}")
end
end
+ url_matcher = "$urlMatcherFactoryProvider.compile(\"#{url_matcher}#{ui_params}\")"
@states[route.name] = {
url: url_matcher,
templateUrl: path,
cache: route.defaults[:cache] === false ? false : true
\ No newline at end of file