class Car < ActiveRecord::Base
store :options, accessors: [:bla, :blaa, :blaaa]
end
在控制台中:
Car.create(name: "aventador")
car = Car.last
=> #<Item id: 5839, name: "aventador">
car.options_changed?
=> false
car.save
(0.3ms) UPDATE "cars" SET "updated_at" = '2013-03-27 15:26:05.435320', "options" = '--- {}'
没有任何改变,商店没有被访问。为什么每次保存记录时都会重新序列化选项存储?