Posts Tagged ‘activesupport’
Understanding Ruby and Rails: Lazy load hooks
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
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
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
How to use the ActiveSupport::Rescuable module in a Rails application and in your non-Rails Ruby code.
Understanding Ruby and Rails: Delegate
A small tutorial about the Ruby on Rails delegate method which provides support for implementing the Delegation Design Pattern.
Recent Comments