Permalink
Commits on Jul 23, 2010
  1. Bumping version to beta 10

    durran committed Jul 23, 2010
  2. Add conversions to enable field :type => Symbol

    Damien Mathieu committed with bernerdschaefer Jul 21, 2010
Commits on Jul 22, 2010
  1. Track descendent Mongoid::Documents via descendents module method.

    Removes use of ObjectSpace from `rake db:create_indexes`
    jacquescrocker committed Jul 22, 2010
  2. Document#remove resets attribute to correct value

    [resolves github issue #180]
    bernerdschaefer committed Jul 22, 2010
  3. Docfix

    bernerdschaefer committed Jul 22, 2010
  4. Only delete embedded documents if _destroy parameter has a true value…

    …. Truth check copied from ActiveRecord
    smh committed with jacquescrocker Jul 22, 2010
  5. Make sure criteria only tries to merge multiple hashes (not strings).

    [Resolves github issue #205]
    jacquescrocker committed Jul 22, 2010
  6. Default attributes for references one/many create

    [Resolves github issue #175]
    bernerdschaefer committed Jul 22, 2010
  7. ReferencesManyAsArray works with ReferencedIn

    When setting the parent attribute on the child document we check whether
    the association is a references_many or referenced_in to decide if we
    need to push or set the id.
    
    [Resolves github issue #206]
    bernerdschaefer committed Jul 22, 2010
  8. Execute `rake spec` from `rake spec:all`

    Shell scripts exit when they encounter failures, and call `rake` instead
    of `rake spec`.
    bernerdschaefer committed Jul 22, 2010
  9. ReferencesManyAsArray does not require inverse association

    Since a references_many :stored_as => :array association stores the
    related object ids in an internal collection, setting the inverse
    association is optional. This allows for one-way referential
    associations.
    bernerdschaefer committed Jul 22, 2010
  10. Let the Gemfile pull its dependencies from the gemspec, will need bun…

    …dler > 1.0.0.beta.1
    Durran Jordan committed with Pairing Workstation Calculon Jul 22, 2010
Commits on Jul 21, 2010
  1. Adding Model.create_indexes to create indexes

    By default this gets run if autocreate_indexes option is on. Otherwise you can run it manually (or use the rake db:create_indexes) to create the indexes on your MongoDB database
    jacquescrocker committed Jul 21, 2010
  2. Reconnect when Unicorn or Passenger use forking

    If Passenger or Unicorn are configured to load the application before
    forking their workers, we reconnect to mongo in the child process.
    bernerdschaefer committed Jul 21, 2010
  3. Added delegation from Finders to Criteria for the near method; this a…

    …llows for the syntax Address.near(:latlng => [37.7, -122.4, 1]).
    archfear committed with jacquescrocker Jul 21, 2010
  4. Indexes are now *NOT* created by default in Mongoid.

    Also added rake db:create_indexes that will force mongoid to create the indexes on your database (may take a long time).
    
    If you want the old functionality, just set autocreate_indexes to true (via yml, or direct config). The recommended behavior though is to keep this turned off, and create indexes manually via mongodb.
    jacquescrocker committed Jul 21, 2010
  5. swapping out default ruby

    jacquescrocker committed Jul 21, 2010
Commits on Jul 20, 2010
  1. Deprecating Model.logger= in favor of Mongoid.logger=

    They both do the same thing. Unless we're able to get separate loggers per model, I think its best to deprecate this one.
    jacquescrocker committed Jul 20, 2010
  2. Cleaning up whitespace

    Durran Jordan committed with Pairing Workstation Bender Jul 20, 2010
  3. Fixing failing integration spec on nested attributes for embedded doc…

    …s, cleaning up nested build on embeds many
    Durran Jordan committed with Pairing Workstation Bender Jul 20, 2010
  4. Removing --backtrace

    Durran Jordan committed with Pairing Workstation Bender Jul 20, 2010
Commits on Jul 19, 2010
  1. Cleaning up spaces

    jacquescrocker committed Jul 19, 2010
  2. Chaining where methods that include the same field now merges the sel…

    …ection criteria. Moved deleted scope into Mongoid::Paranoia and deleted Mongoid::Paranoid.
    archfear committed with jacquescrocker Jul 19, 2010
  3. Fix typo

    jacquescrocker committed with Pairing Workstation Bender Jul 19, 2010