Permalink
Commits on Mar 5, 2012
  1. Update to 2.4.6

    durran committed Mar 5, 2012
Commits on Feb 29, 2012
Commits on Feb 28, 2012
  1. Update changelog

    durran committed Feb 28, 2012
  2. Cast #limit() and #skip() arguments as Integer

    To avoid raising ArgumentError deep inside Mongo's driver:
    `MyModel.limit("2").to_a` =>
    
    mongo-1.5.2/lib/mongo/cursor.rb:272:in `>'
    mongo-1.5.2/lib/mongo/cursor.rb:272:in `batch_size'
    mongo-1.5.2/lib/mongo/cursor.rb:80:in `initialize'
    mongo-1.5.2/lib/mongo/collection.rb:236:in `new'
    mongo-1.5.2/lib/mongo/collection.rb:236:in `find'
    mongoid-2.4.4/lib/mongoid/collections/master.rb:25:in `block in find'
    mongoid-2.4.4/lib/mongoid/collections/retry.rb:29:in `retry_on_connection_failure'
    mongoid-2.4.4/lib/mongoid/collections/master.rb:24:in `find'
    mongoid-2.4.4/lib/mongoid/collection.rb:42:in `find'
    mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:175:in `block in execute'
    mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:478:in `selecting'
    mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:169:in `execute'
    mongoid-2.4.4/lib/mongoid/contexts/mongo.rb:261:in `iterate'
    mongoid-2.4.4/lib/mongoid/criteria.rb:145:in `block in each'
    mongoid-2.4.4/lib/mongoid/criteria.rb:145:in `tap'
    mongoid-2.4.4/lib/mongoid/criteria.rb:145:in `each'
    byroot committed with durran Feb 28, 2012
  3. Document#update_attributes accepts additional options hash.

    In Rails >3.1.0 updates_attributes accepts an additional options hash
    so we do, too. Its used for mass assignment security.
    i0rek committed with durran Feb 8, 2012
Commits on Feb 26, 2012
Commits on Feb 25, 2012
Commits on Feb 24, 2012
Commits on Feb 23, 2012
  1. Merge pull request #1755 from Flameeyes/2.4.0-stable

    Add one missing replacement of localhost vs envvar
    durran committed Feb 23, 2012
Commits on Feb 22, 2012
  1. Update changelog

    durran committed Feb 22, 2012
  2. Sort for localized fields, too.

    Fixes #1744.
    durran committed Feb 22, 2012
  3. Update changelog

    durran committed Feb 22, 2012
  4. Merge pull request #1747 from shingara/issue-1746

    add information about which locale is blank in validate_presence_of on localize field
    durran committed Feb 22, 2012
Commits on Feb 18, 2012
  1. Add support for embeds_many when querying Enumerable:

    - Add some tests, use duck typing
    - Prefer array check of exceptions as control flow
    durran committed Feb 18, 2012
Commits on Feb 16, 2012
Commits on Feb 15, 2012
Commits on Feb 14, 2012
Commits on Feb 13, 2012
  1. Allow reordering of foreign keys even with pulls/pushes

    When there were pushes (or pulls) as well as elements being reordered,
    save would only push (or pull) elements. The changed order of the other
    elements were lost.
    
    With this change, checking is done to ensure that we only push when the
    new elements are at the end, and pull when the remaining element's order
    has not changed.
    robinst committed with durran Feb 12, 2012
  2. Mark start of 2.4.5 dev

    durran committed Feb 13, 2012
  3. Flag 2.4.4

    durran committed Feb 13, 2012
Commits on Feb 11, 2012
  1. Fix 1.8 syntax errors

    durran committed Feb 11, 2012
  2. Versioning updated_at attribute:

    - Generate a new document version unless the changed attributes
      include only updated_at
    lucasas committed with durran Feb 10, 2012
Commits on Feb 9, 2012
  1. Add passing spec for #1689.

    durran committed Feb 9, 2012