RailsCasts Pro episodes are now free!

Learn more or hide this

hazah's Profile

GitHub User: hazah

Comments by

Avatar

Abstracting the SQL into ruby removes server specific syntax from your code, lets a driver take care of specifics, and leaving you to deal only with intent. Besides, at the end of the day, you can still use SQL when you really need to. The question I ask myself is "do I want to switch contexts here?"

Avatar

Would MetaWhere work with CanCan's 3rd parameter of the can method? If so, that would be great, if not, is there any plan to make the two plugins compatible?