lib/brakeman/processors/lib/rails2_config_processor.rb in brakeman-1.3.0 vs lib/brakeman/processors/lib/rails2_config_processor.rb in brakeman-1.4.0
- old
+ new
@@ -101,10 +101,10 @@
#
#becomes
#
# [:action_controller, :session_store]
def get_rails_config exp
- if sexp? exp and exp.node_type == :attrasgn
+ if node_type? exp, :attrasgn
attribute = exp[2].to_s[0..-2].to_sym
get_rails_config(exp[1]) << attribute
elsif call? exp
if exp[1] == Brakeman::RAILS_CONFIG
[exp[2]]