Permalink
Commits on Jul 26, 2010
  1. Bumping version to beta 12

    durran committed Jul 26, 2010
Commits on Jul 25, 2010
  1. Adding Document.reflect_on_all_associations

    This is needed for formtastic support.
    durran committed Jul 25, 2010
  2. Bumping to version beta 11

    durran committed Jul 25, 2010
  3. Hooking in the safety DSL on a per-query basis.

    The safety DSL can now be used like so:
    
    Person.safely.create(:title => "Sir")
    person.safely.save!
    
    The Safety proxy delegates using method_missing
    except in the cases of methods that take an
    attributes hash. This is because we did not want
    to throw a :safe => true in the hash and then
    remove it later - safe is too common of a word
    and could be used as a field/attribute and
    collide with this functionality. I've deemed the
    slight duplication acceptable.
    durran committed Jul 25, 2010
  4. Persistence commands now accept an options hash.

    This is so that instead of just passing in a boolean
    to alert it to validate or not, we can now provide
    a safe mode option on a per query basis. Also other
    options could be supplied in the future.
    durran committed Jul 25, 2010
  5. Adding in Mongoid::Safety module.

    This first commit introduces the class and instance level
    methods "safely" which will be used as a DSL to indicate
    the chained database operation should execute in safe
    mode.
    durran committed Jul 25, 2010
  6. Passing a boolean no longer allowed for save.

    To stay consistent with Rails on this front, in order
    to persist with no validation, :validate => false must
    be passed as an argument.
    durran committed Jul 25, 2010
  7. Slight formatting change

    durran committed Jul 25, 2010
  8. Updating warning message

    durran committed Jul 25, 2010
Commits on Jul 24, 2010
  1. Adding completely ridiculous, over-the-top install message so everyon…

    …e knows the id changes on next version.
    durran committed Jun 4, 2010
  2. Renaming some test vars

    durran committed Jul 24, 2010
  3. Plugging in new identity behavior

    - Mongoid.use_object_ids has now been removed.
    - Documents now default to using object ids.
    - Document.indentify :type => String can be used to change id type.
    - Moved Mongoid.convert_to_object_id to Criteria and renamed to
      cast_ids(bang)
    - Removed the double rake run since id configuration is not global
      anymore.
    durran committed Jul 24, 2010
  4. Added ability to define the id type on per model basis.

    Document.identity take a Hash of options and the :type
    option will set the type that the id for the model will
    be. This will start out by only supporting String and
    BSON::ObjectID and defaults to the later.
    durran committed Jul 24, 2010
  5. Pulling key functionality out into its own module.

    durran committed with Pairing Workstation Calculon Jul 24, 2010
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