3 ms·
Thanks! I'm sure you know that I'm a big fan of presenters, maintaining one of the most popular gems that implements them, but they've generally been deemed a
by steveklabnik 13y ago
Thanks!
I'm sure you know that I'm a big fan of presenters, maintaining one of the most popular gems that implements them, but they've generally been deemed a bit too heavy of a pattern in the past. What do you mean by 'arbitrarily set them'?
There were performance tests, but nobody used them, so we pulled them out to a gem in 4.0.
Can you give me an example of the eval problem? Not familliar with it.
- purephase 13y agoSteve, thanks for following-up. For point one, I mean that developers have free range with helper definitions and that they eventually find their way into controllers. Interesting news about performance tests in <4. I didn't realize that, I'll check them out. The eval problem is as follows (typically if you have to eval something in a gem): class Foo < ActiveRecord::Base before_save :bar .. end Foo.class_eval do # I want to remove before_save callback here without having to redefine it. before_save :bar ... def bar return end end It's not a big deal, just adds clutter. Thanks again!