[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

Re: [Rails-core] define_methods functionality

2012-10-04 Thread Robert Pankowecki
What is the usecase? What value does it provide ? How is it any better than ? def title; nil; end def type; nil; end Maybe it is just me but I totally do not get what your are trying to achieve. Robert Pankowecki -- You received this message because you are subscribed to the Google Groups

Re: [Rails-core] define_methods functionality

2012-10-04 Thread Piotr Sarnacki
Thanks for your proposal, but it's probably too narrow use case to extend rails with it. Also, it may look weird to do a few similar methods that just return nil, but at least it's easy to understand - if I don't know what does define_methods do, I would need to check implementation or