# File lib/active_record/store.rb, line 31 31: def store(store_attribute, options = {}) 32: serialize store_attribute, Hash 33: store_accessor(store_attribute, options[:accessors]) if options.has_key? :accessors 34: end
# File lib/active_record/store.rb, line 36 36: def store_accessor(store_attribute, *keys) 37: Array(keys).flatten.each do |key| 38: define_method("#{key}=") do |value| 39: send(store_attribute)[key] = value 40: send("#{store_attribute}_will_change!") 41: end 42: 43: define_method(key) do 44: send(store_attribute)[key] 45: end 46: end 47: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.