rails/rails — Issue #5136: Unable to call a scope named 'open' on an association in 3.1+ on 1.9
Author: brianmario
Created: 2012-02-22 23:38:01+00:00
State: open

Quick way to repro:

``` ruby
class Ticket < ActiveRecord::Base
scope :open, where(:state => 'open')
end

class User < ActiveRecord::Base
has_many :tickets
end

# this will blow up
User.first.tickets.open
```

It appears to be because Kernel has an open method. It blows up here: https://github.com/rails/rails/blob/3-1-stable/activerecord/lib/active_record/associations/collection_proxy.rb#L108