makandra / active_type

Make any Ruby object quack like ActiveRecord
MIT License
1.09k stars 74 forks source link

Could you please support methods which defined in ActiveRecord::QueryMethods #56

Closed frozenfung closed 8 years ago

frozenfung commented 8 years ago

Hi, Koch

As title, could you please support useful methods like includes , select and group and so on which are defined in ActiveRecord::QueryMethods ?

https://github.com/rails/rails/blob/master/activerecord/lib/active_record/relation/query_methods.rb

thanks ;)

Best, Fung

kratob commented 8 years ago

Hi Fung,

ActiveType::Record is backed by the database, inherits from ActiveRecord::Base, and so does already support these methods.

ActiveType::Object is not backed by a database, and so it does not support them.