Skip to content
Browse files

Detect attr_accessible with no arguments

fixes #31
  • Loading branch information...
1 parent c43cf22 commit 9120f2a42da7adbd5b0032d1a366e964269e6020 @presidentbeef committed Jan 17, 2012
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

0 comments on commit 9120f2a

Please sign in to comment.
Something went wrong with that request. Please try again.