MetaWhere offers the ability to call any Arel predicate methods (with a few convenient aliases) on your Model's attributes instead of the ones normally offered by ActiveRecord's hash parameters. It also adds convenient syntax for order clauses, smarter mapping of nested hash conditions, and a debug_sql method to see the real SQL your code is generating without running it against the database. If you like the new AR 3.0 query interface, you'll love it with MetaWhere.

installgem install maksar-meta_where

Ernie Miller

1,143 total downloads 1,143 for this version


gem 'maksar-meta_where', '~> 1.0.4'
  1. 1.0.4 June 8, 2011 (27 KB)
Development Dependencies
  1. shoulda >= 0
  2. sqlite3 ~> 1.3.3