Topic: How would you define before and after method in a ruby class
Hi Friends,
How would you define before and after method in a ruby class. Just like the case of around_filter in controllers?
You are not logged in. Please login or register.
Rails Forum - Ruby on Rails Help and Discussion Forum » Ruby Programming » How would you define before and after method in a ruby class
Hi Friends,
How would you define before and after method in a ruby class. Just like the case of around_filter in controllers?
As those methods are defined in ActionController::Base, I think you should either subclass the module or 'require' it in your class.
Hosting provided by aTech Media