Dear Rails Core mailing list,
I would like to propose some additions to the #store_accessor method, so that also defines query and _was methods.
class User < ActiveRecord::Base
store :settings, accessors: [ :color, :homepage ], coder: JSON
u = User.create(color: ‘black’, homepage: ‘37signals.com’)
u.color? # => true
u.color = ‘white’
u.color_was # => “black”
I can submit a PR if you support the change.