lib/baurets/optionsful/introspections.rb in optionsful-0.4.2 vs lib/baurets/optionsful/introspections.rb in optionsful-0.4.3
- old
+ new
@@ -16,14 +16,10 @@
def self.do_rails_recognition(path_info)
allow = ""
gimme_routes.each do |route|
if path_info =~ route.conditions[:path_info]
- if route.verb
- allow += (route.verb.to_s.upcase + "|") unless allow.include?(route.verb.to_s.upcase)
- else
- allow = "GET" # TODO Return 'ANY' doesn't sound ANY good to me.. ;p
- end
+ allow = "GET" # TODO Return 'ANY' doesn't sound ANY good to me..
end
end
allow = allow.split("|").join(", ")
end