Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jul 26, 2010
  1. @durran

    Bumping version to beta 12

    durran authored
  2. @durran
Commits on Jul 25, 2010
  1. @durran

    Adding Document.reflect_on_all_associations

    durran authored
    This is needed for formtastic support.
  2. @durran

    Bumping to version beta 11

    durran authored
  3. @durran

    Hooking in the safety DSL on a per-query basis.

    durran authored
    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.
  4. @durran
  5. @durran

    Persistence commands now accept an options hash.

    durran authored
    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.
  6. @durran

    Adding in Mongoid::Safety module.

    durran authored
    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.
  7. @durran

    Passing a boolean no longer allowed for save.

    durran authored
    To stay consistent with Rails on this front, in order
    to persist with no validation, :validate => false must
    be passed as an argument.
  8. @durran

    Slight formatting change

    durran authored
  9. @durran

    Updating warning message

    durran authored
Commits on Jul 24, 2010
  1. @durran
  2. @durran
  3. @durran
  4. @durran
  5. @durran
  6. @durran

    Adding completely ridiculous, over-the-top install message so everyon…

    durran authored
    …e knows the id changes on next version.
  7. @durran

    Renaming some test vars

    durran authored
  8. @durran

    Plugging in new identity behavior

    durran authored
    - 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.
  9. @durran
  10. @durran

    Added ability to define the id type on per model basis.

    durran authored
    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.
  11. @durran

    Pulling key functionality out into its own module.

    durran authored Pairing Workstation Calculon committed
Commits on Jul 23, 2010
  1. @durran

    Bumping version to beta 10

    durran authored
  2. @railsjedi
  3. @bernerdschaefer

    Add conversions to enable field :type => Symbol

    Damien Mathieu authored bernerdschaefer committed
Commits on Jul 22, 2010
  1. @railsjedi

    Track descendent Mongoid::Documents via descendents module method.

    railsjedi authored
    Removes use of ObjectSpace from `rake db:create_indexes`
  2. @bernerdschaefer

    Document#remove resets attribute to correct value

    bernerdschaefer authored
    [resolves github issue #180]
  3. @bernerdschaefer

    Docfix

    bernerdschaefer authored
  4. @shingara @bernerdschaefer
  5. @smh @railsjedi

    Only delete embedded documents if _destroy parameter has a true value…

    smh authored railsjedi committed
    …. Truth check copied from ActiveRecord
  6. @railsjedi
  7. @railsjedi

    Make sure criteria only tries to merge multiple hashes (not strings).

    railsjedi authored
    [Resolves github issue #205]
  8. @bernerdschaefer

    Default attributes for references one/many create

    bernerdschaefer authored
    [Resolves github issue #175]
  9. @railsjedi
  10. @bernerdschaefer

    ReferencesManyAsArray works with ReferencedIn

    bernerdschaefer authored
    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]
Something went wrong with that request. Please try again.