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.

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

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

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

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

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

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

    bernerdschaefer committed Jul 22, 2010
    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]
  8. Execute `rake spec` from `rake spec:all`

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

    bernerdschaefer committed Jul 22, 2010
    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.
  10. Let the Gemfile pull its dependencies from the gemspec, will need bun…

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

    jacquescrocker committed Jul 21, 2010
    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
  2. Reconnect when Unicorn or Passenger use forking

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

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

    jacquescrocker committed Jul 21, 2010
    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.
  5. swapping out default ruby

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

    jacquescrocker committed Jul 20, 2010
    They both do the same thing. Unless we're able to get separate loggers per model, I think its best to deprecate this one.
  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…

    Durran Jordan committed with Pairing Workstation Bender Jul 20, 2010
    …s, cleaning up nested build on embeds many
  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…

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

    jacquescrocker committed with Pairing Workstation Bender Jul 19, 2010