Conflict with Rails #532

Closed
brainopia opened this Issue Aug 13, 2012 · 1 comment

2 participants

@brainopia

In default configuration (with core extensions loaded) conflicts with current version of ActiveRecord because of https://github.com/rails/rails/blob/master/activerecord/lib/active_record/relation/calculations.rb#L296.

@jeremyevans
Owner

I consider that a bug in ActiveRecord. Sequel has been using the as method for over 4 years, so you should file the bug with them and get them to use something beyond a simple respond_to?(:as) check. If you want to work around the issue in Sequel, undef_method is your friend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment