diff options
author | Sean Walbran <swalbran@socialcast.com> | 2013-05-07 13:22:52 -0500 |
---|---|---|
committer | Sean Walbran <swalbran@socialcast.com> | 2013-05-07 13:22:52 -0500 |
commit | 9003a422f2a717ef11409245bfb8e81018be56c4 (patch) | |
tree | 0406cdecdd979676fdb38d52fed2f375e619f9f0 /activesupport/lib/active_support | |
parent | 3043d45eefc3776d5f3a9e7d212a01f99d869ef8 (diff) | |
download | rails-9003a422f2a717ef11409245bfb8e81018be56c4.tar.gz rails-9003a422f2a717ef11409245bfb8e81018be56c4.tar.bz2 rails-9003a422f2a717ef11409245bfb8e81018be56c4.zip |
fix issue #10502, do not recompute method name for already-stringified object filter
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 893c2500d7..1dcacf0b12 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -133,7 +133,7 @@ module ActiveSupport end def matches?(_kind, _filter) - if @_is_object_filter + if @_is_object_filter && !_filter.is_a?(String) _filter_matches = @filter.to_s.start_with?(_method_name_for_object_filter(_kind, _filter, false)) else _filter_matches = (@filter == _filter) |