Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

conditions are guaranteed to be arrays by initialize

  • Loading branch information...
commit 99f5add4be302a6b17f7098c1a9233a19de0fda4 1 parent d10cadc
@tenderlove tenderlove authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/callbacks.rb
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.