[Rails-core] define_methods functionality

2012-10-04 Thread Тіма Маслюченко
Hi guys I am thinking about new feature(maybe it already exists, in thie case let me know) Can you pelase review and provide some feedbacks, if you find it usefull of course We can put in inside active_support So i need define methods that return nil(or other value that is similar for all

[Rails-core] Add posibility pass hash to ActiveReccord::Querying#order

2012-10-01 Thread Тіма Маслюченко
Hi guys I have added possibility pass hash to order method. Also i updated symbol parsing. Here is the pull request - https://github.com/rails/rails/pull/7765 Can you please provide some feedback? So the main idea is to convert symbol or hash into Arel::Nodes::Ordering instead of