aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/streaming_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-04 15:50:31 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-04 15:50:31 -0700
commitd1f003e67b6438a0c5367962fa1a35cd22e7cc8c (patch)
tree477fba294e0701df58387306c4e3b5b1707a43fe /actionpack/test/controller/streaming_test.rb
parent08ff4ccbbb3fb143a02e6752efb974a4bcfcd3bb (diff)
downloadrails-d1f003e67b6438a0c5367962fa1a35cd22e7cc8c.tar.gz
rails-d1f003e67b6438a0c5367962fa1a35cd22e7cc8c.tar.bz2
rails-d1f003e67b6438a0c5367962fa1a35cd22e7cc8c.zip
Correctly handle multiple attribute method prefix/suffixes which match
Active Record defines `attribute_method_suffix :?`. That suffix will match any predicate method when the lookup occurs in Active Model. This will make it incorrectly decide that `id_changed?` should not exist, because it attempts to determine if the attribute `id_changed` is present, rather than `id` with the `_changed?` suffix. Instead, we will look for any correct match.
Diffstat (limited to 'actionpack/test/controller/streaming_test.rb')
0 files changed, 0 insertions, 0 deletions