Posts Tagged ‘activesupport’

Understanding Ruby and Rails: Lazy load hooks

April 7th, 2011 at 10:22 am • permalink9 comments

With Rails 3 you can now register specific hooks to be lazy-executed when the corresponding library is loaded.

Ruby Proxy Pattern and Dynamic Delegation with ActiveSupport BasicObject

May 13th, 2010 at 9:55 am • permalink5 comments

An overview of the Ruby 1.9 BasicObject, including a small proxy pattern and delegation example.

Understanding Ruby and Rails: Serializing Ruby objects with JSON

April 29th, 2010 at 11:29 am • permalink15 comments

An overview of ActiveSupport::JSON, the Rails wrapper to convert Ruby objects to JSON notation and vice-versa.

Understanding Ruby and Rails: Rescuable and rescue_from

December 21st, 2009 at 9:00 am • permalink0 comments

How to use the ActiveSupport::Rescuable module in a Rails application and in your non-Rails Ruby code.

Understanding Ruby and Rails: Delegate

December 15th, 2009 at 7:42 pm • permalink10 comments

A small tutorial about the Ruby on Rails delegate method which provides support for implementing the Delegation Design Pattern.

Follow Me
    Random Quote