Permalink
Browse files

conditions are guaranteed to be arrays by initialize

  • Loading branch information...
1 parent d10cadc commit 99f5add4be302a6b17f7098c1a9233a19de0fda4 @tenderlove tenderlove committed May 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/callbacks.rb
@@ -463,8 +463,8 @@ def compute_identifier(filter)
end
def conditions_lambdas
- Array(options[:if]).map { |c| make_lambda c } +
- Array(options[:unless]).map { |c| invert_lambda make_lambda c }
+ options[:if].map { |c| make_lambda c } +
+ options[:unless].map { |c| invert_lambda make_lambda c }
end
def _normalize_legacy_filter(kind, filter)

0 comments on commit 99f5add

Please sign in to comment.