Alias 'order_by' with 'order' #194

brazenbraden opened this Issue Feb 16, 2016 · 1 comment


None yet
2 participants

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 nviennot closed this in c87baaf Feb 16, 2016


This comment has been minimized.

Show comment
Hide comment

nviennot Feb 16, 2016


Sure thing!


nviennot commented Feb 16, 2016

Sure thing!

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