lib/tomogram_routing/tomogram.rb in tomogram_routing-0.1.1 vs lib/tomogram_routing/tomogram.rb in tomogram_routing-0.1.2
- old
+ new
@@ -24,10 +24,10 @@
action = search_for_an_exact_match(method, path, self)
return action['path'] if action
action = search_with_parameter(method, path, self)
- return action['path'] if action&.first
+ return action['path'] if action && action.first
''
end
def remove_the_slash_at_the_end2(path)