rails/rails — pull request #6866 by brutuscat (2012-06-26 15:18:07+00:00)
Title: Add query methods in ActiveRecord::Base.store for convenience

Example
class User < ActiveRecord::Base
store :settings, accessors: [ :homepage, :editor ]
end

u = User.new(homepage: '37signals.com', editor: true)
u.editor? # => true

Much like how is done in Class.class_attribute