Skip to content
Commits on Aug 30, 2010
  1. Bumping version to beta 17

    Pairing Workstation Calculon committed
Commits on Aug 24, 2010
  1. @jacquescrocker
  2. @jacquescrocker
Commits on Aug 15, 2010
  1. @bernerdschaefer

    Update railtie config text for rails3

    bernerdschaefer committed
    It should say "rails generate" instead of "script/rails...".
    
    Fixes #252
  2. @bernerdschaefer

    Support hash of safety options for safely methods

    bernerdschaefer committed
    This brings in more support for replica sets, so that on a per query
    basis you can specify the safety assurances you need:
    
      person.safely(:w => 2, :wtimeout => 1, :fsync => true).save
Commits on Aug 12, 2010
  1. @dlt @durran
  2. @dlt @durran

    Corrected a typo

    dlt committed with durran
Commits on Aug 10, 2010
  1. @durran
  2. @durran
  3. @durran

    added Korean locale support

    rdetert committed with durran
Commits on Aug 9, 2010
  1. @durran

    Fix respond_to? override to be friendly with IRB

    Peter Kieltyka committed with durran
  2. @durran

    Making mongoid use root namespaced I18n in order not to conflict with…

    durran committed
    … Mongoid::I18n. Fixes #249.
  3. @durran
Commits on Aug 8, 2010
  1. @durran

    Aliasing [] and []= to read_attribute and write_attribute.

    durran committed
    - Makes for a nicer shorthand syntax.
Commits on Aug 7, 2010
  1. @jacquescrocker

    Parse Mongoid settings before establishing connection

    jacquescrocker committed
    Some Mongoid settings might want to modify the way connections are set up (e.g. skip_version_check). This change makes sure the Mongoid::Config attributes are set before starting the connection
Commits on Aug 6, 2010
  1. @durran

    Updating version to beta 16

    durran committed
  2. @durran

    A slight rewording in the spec

    durran committed
  3. @durran

    Adding in support for $or queries via Criteria#any_of|or

    durran committed
    Fixes #238.
    
    - any_of is for readability and not to confuse users when chaining since
      it could appear the or is splitting the entire chain instead of just
      the args passed to the method.
    
    - Syntax: Person.any_of({ :age => 1 }, { :age => 2 })
  4. @durran
  5. @durran
  6. @durran

    Relational association key fields should be typed by the inverse class.

    durran committed
    Fixes #236.
    
    - Mongoid was improperly looking at the class that the association was
      defined on to check to use object ids or strings, when the actual ids
      were those belonging to the inverse of the relationship. This was
      being exposed in applications that used a combination of object ids
      and strings.
  7. @durran
Commits on Aug 5, 2010
  1. @durran
  2. @durran

    Adding in after_initialize callback. Fixes #145.

    durran committed
    - Document#after_initialize will only run after calling Document.new.
    - The optimized Document.instantiate (for objects loaded from the db)
      does not include this callback.
  3. @bvandenbos @durran
Commits on Aug 4, 2010
  1. @bernerdschaefer

    Allow multiple complex criteria in a single hash

    bernerdschaefer committed
    Fixes #172
    
    - The Hash extension function 'expand_complex_criteria' now uses a
      similar algorithm as chaining 'where' clauses to allow complex
      criteria to be merged. This allows queries like the following to be
      executed:
    
        Person.where(:age.gt => 10, :age.lt => 20)
  2. @durran
  3. @durran

    Fixed bug where when an object belonged to another in more than one a…

    Matt committed with durran
    …ssociation, the wrong association was sometimes used
  4. @durran
  5. @durran

    String ids getting set on references many as array get converted.

    durran committed
    Fixes #225.
    
    - For situations where string object ids are coming in from forms
      we need to convert them back to object ids if the array is
      marked as an identity array
    - Casting of the object ids was moved out of the optional criterion
      module and into the BSON::ObjectID conversions module.
    - You can now call BSON::ObjectID.cast! with a string, object id,
      array of strings or array of object ids and it will convert
      properly based on the config.
    - Field now stores class information to pass to the setter.
  6. @durran
  7. @bernerdschaefer

    Add #shift method to mongoid contexts

    bernerdschaefer committed
    Calling #shift on a criteria will return the first document and
    increment the current #skip() value.
    
    [resolves github issue #183]
  8. @bernerdschaefer
  9. @jacquescrocker
Commits on Aug 3, 2010
  1. @durran
Something went wrong with that request. Please try again.