Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jul 29, 2008
Commits on Jul 28, 2008
  1. Fixing 'association' typos

    David James authored
Commits on Jul 26, 2008
Commits on Jul 25, 2008
  1. Small doc fixes for set_log

    David James authored
Commits on Jul 24, 2008
  1. @bernerdschaefer
  2. @bernerdschaefer

    Version bump.

    bernerdschaefer authored
  3. Raise a more meaningful exception

    In a DM::Resource when an associated class is missing, it is non-obvious where it is
Commits on Jul 23, 2008
  1. @bernerdschaefer

    Added deprecation warning for Model#create!. Removed all calls to cre…

    bernerdschaefer authored
    …ate! in specs. This resolves #428.
Commits on Jul 22, 2008
  1. @bernerdschaefer
  2. @bernerdschaefer
  3. @bernerdschaefer

    Updated Property#set to load lazy values before setting the new value.

    bernerdschaefer authored
    *  Extracted lazy loading from Property#get to Property#lazy_load(resource)
    *  Fixed unit/property_spec
    *  Added spec to property_spec for lazy loading.
Commits on Jul 21, 2008
  1. @mayo

    remove scale from required parameters for a float. Default the scale …

    mayo authored
    of float to nil.
  2. fix #459 : type and id should be undef'd by Path ( to allow Model.joi…

    Aadithya Deshpande authored
    … )
Commits on Jul 16, 2008
  1. Fixed the argument signatures on after hooks

    Carl Lerche authored
Commits on Jul 15, 2008
  1. Ensure GROUP BY only happens with Query#fields contains a Property

    Dan Kubb authored
    * Added specs for GROUP BY change, and moved the classes to the top
      of the file and namespaced them to avoid colissions.
  2. Added specs for Query::Operator#==

    Dan Kubb authored
    * Updated Query::Operator#== to only return true if the other's class
      is equal to, or a descendant of self.class
  3. Refactored SQL generation

    Dan Kubb authored
    * Loosened constraints on Query object that would allow #fields and
      #order to be empty arrays in very specific circumstances. (needed for
    * Split up query generation for ORDER BY part
    * Allow Query::Operator objects to be passed through when in Query#fields
  4. Stripped whitespace with "sake strip"

    Dan Kubb authored
  5. Fixed errors in ManyToMany::Proxy class and specs

    Dan Kubb authored
    * Earlier spec runs were affecting later spec runs because the data
      wasn't being cleared after a run.  This affected the counts and
      expected numbers of associations.  Updating to auto-migrate after
      each spec run corrects this error.
    * Updated specs to check before and after conditions to ensure the
      mutator methods were having a real effect.  Caught several bugs with
      this approach.
    * Added specs for ManyToMany::Proxy#replace
    * Fixed ManyToMany::Proxy#replace to actually create the "through"
      resource the same was ManyToMany::Proxy#<< does.  Refactored common
      code into private method ManyToMany::Proxy#relate_resource
    * Updated ManyToMany::Proxy#replace to accept a Hash instead of a
      Resource object.
  6. @hassox
Commits on Jul 14, 2008
  1. prevent duplicates ids in the parent lookup and make more consistent …

    Wesley Beary authored
    …with get_children
  2. Removed unneccesary spec added to assocation_spec. Changed push/unshi…

    Bernerd Schaefer authored
    …ft to reject! saved resources already in the collection.
  3. Fixed last commit: #<< on OneToMany should only reject duplicates if …

    Bernerd Schaefer authored
    …they're saved records. Added dbussink's spec from #394.
  4. OneToMany::Proxy#<< returns if it already includes the resource added…

    Bernerd Schaefer authored
    …. Resolves #394.
  5. @hassox
  6. @hassox
  7. @hassox

    Adds support for multi repository paranoid deletes. Also fixes a bug …

    hassox authored
    …where only one paranoid property was set.
    Squashed commit of the following:
    commit b06edab6cd129a9715d7a84b3cba4e6afb7c35fe
    Author: Daniel Neighman <>
    Date:   Mon Jul 14 18:41:23 2008 +1000
        removes personal info about my db :P
    commit 5acdcd68d45972c52a971a9672655dcfc05cbe7f
    Author: Daniel Neighman <>
    Date:   Mon Jul 14 18:35:11 2008 +1000
        fixes a bug with paranoid properties where they are not all set when multiiple are declared
    commit b9c0095978899ab8b62fba2c578a463b26f97386
    Author: Daniel Neighman <>
    Date:   Mon Jul 14 17:10:18 2008 +1000
        Adds code to respect repositories for paranoid deteletes
    commit b886a1eba14357973d6ff58cd66fbf4876eb1187
    Author: Daniel Neighman <>
    Date:   Mon Jul 14 17:08:07 2008 +1000
        Adds code to respect repositories for paranoid deteletes
    commit 73af3e6af973eff3c7140ce5391f4143ef8388b9
    Author: Daniel Neighman <>
    Date:   Mon Jul 14 16:22:55 2008 +1000
        Success.  A failing spec on Paranoid Booleans
Commits on Jul 13, 2008
  1. Removed Query#group_by

    Dan Kubb authored
    * Simplified SQL generation in the DO Adapter
  2. @dbussink
  3. Updated Collection#freeze to work

    Dan Kubb authored
Commits on Jul 11, 2008
  1. Specced Property#field

    Dan Kubb authored
    * Ensure repository_name may be an optional argument to Property#field
    * Ensure custom field name can be passed in to Property constructor
    * Ensure that if no repository_name passed into Property#field that it
      would use the model's repository_name by default
  2. Updated lazy load to only load non-loaded attributes

    Dan Kubb authored
    * Updated Paranoid types to be lazy by default
    * Fixed deprecation warning (spelling and formatting)
    * Minor spec cleanup
  3. Collection can now delegate to the model method, with scope

    Dan Kubb authored
    * This allows a Collection to delegate to a model's method with the
      proper level of scope.  This should also allow chaining of model
      methods that return Collection objects, as well as using model
      methods that return a Resource with the correct scope.
  4. Refactored Relationships to use repository name insetad of reference

    Dan Kubb authored
    * This resolves some nasty bugs where repository objects were being
      used that weren't on the scope stack, so they would have ever-increasing
      IdentityMap, but they were inaccessible to all other code that uses
      repository blocks.
    * Updated model to have a default scope, and changed Discriminator and
      Paranoid types to update the default scope with the conditions rather
      than push onto the scope stack directly.
    * Removed unecessary instantiation of repository object where possible.
    * Minor code cleanup
Commits on Jul 10, 2008
  1. @bernerdschaefer
Something went wrong with that request. Please try again.