Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore more Rails 2 route options

  • Loading branch information...
commit b3eb7a74faa3414cd2944716c15ecc7b9471cba9 1 parent a8f3b51
@presidentbeef authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/brakeman/processors/lib/rails2_route_processor.rb
View
5 lib/brakeman/processors/lib/rails2_route_processor.rb
@@ -112,7 +112,8 @@ def process_resource_options exp
hash_iterate(exp) do |option, value|
case option[1]
when :controller, :requirements, :singular, :path_prefix, :as,
- :path_names, :shallow, :name_prefix, :member_path, :nested_member_path
+ :path_names, :shallow, :name_prefix, :member_path, :nested_member_path,
+ :belongs_to, :conditions, :active_scaffold
#should be able to skip
when :collection, :member, :new
process_collection value
@@ -129,7 +130,7 @@ def process_resource_options exp
when :except
process_option_except value
else
- Brakeman.notify "[Notice] Unhandled resource option: #{option}"
+ Brakeman.notice "[Notice] Unhandled resource option, please report: #{option}"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.