fnando / marshaled_attributes

A simple plugin for saving marshaled objects using ActiveRecord.

This URL has Read+Write access

fnando (author)
Tue Sep 23 16:15:19 -0700 2008
marshaled_attributes / init.rb
100644 9 lines (7 sloc) 0.257 kb
1
2
3
4
5
6
7
8
9
require "marshaled_attributes"
 
# ActiveRecord only calls after_initialize callbacks only if is
# explicitly defined in a class.
class ActiveRecord::Base # :nodoc:
  def after_initialize; end
end
 
ActiveRecord::Base.send(:include, SimplesIdeias::Marshaling)