Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Detect attr_accessible with no arguments

fixes #31
  • Loading branch information...
commit 9120f2a42da7adbd5b0032d1a366e964269e6020 1 parent c43cf22
@presidentbeef authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/brakeman/processors/model_processor.rb
View
2  lib/brakeman/processors/model_processor.rb
@@ -56,6 +56,8 @@ def process_call exp
case method
when :private, :protected, :public
@visibility = method
+ when :attr_accessible
+ @model[:attr_accessible] ||= []
else
#??
end
Please sign in to comment.
Something went wrong with that request. Please try again.