Commits on Sep 8, 2010
  1. Version bump to 1.0.2

    dkubb committed Sep 8, 2010
Commits on Sep 7, 2010
  1. Changed usage of alias to alias_method

    * Currently rdoc chokes when parsing code that uses the alias keyword
    dkubb committed Sep 7, 2010
Commits on Sep 3, 2010
  1. Version bump to 1.0.1

    dkubb committed Sep 3, 2010
Commits on Sep 1, 2010
Commits on Aug 30, 2010
  1. Updated gem dependencies

    dkubb committed Aug 30, 2010
Commits on Aug 27, 2010
  1. Added Property#to_child_key.

    The method by default returns the property class but there might be
    some exceptions like Serial, which returns Integer. This is required
    so that custom properties that are used as PKs can work correctly with
    ManyToOne assocations - UUID from dm-types is a good example.
    [#1348 status:resolved]
    solnic committed Aug 27, 2010
Commits on Aug 25, 2010
  1. Updated Gemfile for rails rc2

    dkubb committed Aug 25, 2010
Commits on Aug 20, 2010
  1. Removed the Property#instance_of? method

    * Normal ruby semantics is that obj.instance_of?(other) only return true
      if obj.class.equal?(other.class) also returns true (objects are of the
      exact same type). This class was doing that but also returning true
      when the DM::Property class object was provided, which is not part of
      normal ruby behaviour.
    * Updated the #instance_of? specs to show the expected behaviour.
    * Updated the #kind_of? specs to use a more modern style of rspec, and
      to show the contrast with #instance_of?
    dkubb committed Aug 20, 2010
  2. Removed the overridden Property#kind_of? method

    * All specs pass without this method explicitly defined, so it is safe
      to remove this. Besides, it's rare to override #kind_of? except in cases
      where you are proxying to another object, which is not the case here.
    dkubb committed Aug 20, 2010
Commits on Aug 18, 2010
  1. Updated Model descendants to not include self

    * This brings the behaviour back inline with what was intended and allows
      logic to be simplified within DescendantSet and Model
    dkubb committed Aug 18, 2010
  2. Updated gemspec

    dkubb committed Aug 18, 2010
  3. Renamed Model::DescendantSet to DescendantSet

    * Prepare for future use everywhere descendant classes are tracked
    dkubb committed Aug 18, 2010
Commits on Aug 17, 2010
  1. Removed redundant call setting the primitive

    * This should already be handled by the code that copies settings
      to the descendant (just underneath this).
    dkubb committed Aug 17, 2010
  2. Refactored Property option methods

    * Instead of asking the parent class for an option value when it is
      unknown, copy the values when the descendant inherits from the
      parent class. Also, when an option value changes in a parent
      class copy the value to all the descendants. This has the same effect
      as the previous code, except that it should be more efficient in
      the general case.
    * Replace Property.primitive with a method created using accept_options.
    dkubb committed Aug 17, 2010
  3. Minor simplification to Gemfile

    dkubb committed Aug 17, 2010
Commits on Aug 16, 2010
  1. Updated to use patched rspec

    dkubb committed Aug 16, 2010
Commits on Jul 28, 2010
  1. Minor formatting fix

    dkubb committed Jul 28, 2010
  2. Only track changed values when persisted state is Dirty

    [#1355 state:resolved]
    dkubb committed Jul 28, 2010
  3. Updated gemspec

    dkubb committed Jul 28, 2010