Add query methods in ActiveRecord::Base.store for convenience #6866

Closed
wants to merge 2 commits into
from
Commits on Mar 16, 2013
  1. @brutuscat

    Add query methods in ActiveRecord::Base.store for convenience

    brutuscat committed Jun 26, 2012
    Example
        class User < ActiveRecord::Base
          store :settings, accessors: [ :homepage, :editor ]
        end
    
        u = User.new(homepage: '37signals.com', editor: true)
        u.editor? # => true
  2. @brutuscat

    Update query method gen based on Active Record query method

    brutuscat committed Jun 28, 2012
    This way blank? and Numeric zero? are taken as special cases and
    return false.