NoBrainerORM / nobrainer

Ruby ORM for RethinkDB
http://nobrainer.io/
Other
387 stars 49 forks source link

Alias 'order_by' with 'order' #194

Closed brazenbraden closed 8 years ago

brazenbraden commented 8 years ago

I am in the process of converting an app from using Postgres to RethinkDB and with active record, you could call Model.order(id: :desc) however with NoBrainer, it must be Model.order_by(id: :desc).

Is it possible to have an alias for order_by so I can call Model.order() instead. Would save a lot of time altering all the order() calls and also make it easier to switch between different ORMs if needed.

nviennot commented 8 years ago

Sure thing!