Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 26, 2008
  1. @sam
  2. @sam

    Merge branch 'master' of

    sam authored
  3. @sam
  4. Fix find_const errors due to change in extlib

    Dan Kubb authored
Commits on Jun 24, 2008
  1. Updated habtm join model to have more intuitive name

    Dan Kubb authored
    * Previously using habtm with two models: Book and Editor would result
      in the join model being created as BooksEditor, which is unintuitive.
      This change would make the join model BookEditor
    * Previously the accessor created on Book would be Book#books_editors,
      but it is now Book#book_editors, which matches other DM conventions.
    * Updated CREATE TABLE generation to not mix NOT NULL with DEFAULT NULL
      when defining properties.  If a property is not nullable, then the
      DEFAULT will only be used if it is not NULL.
  2. Minor update to make assertions consistent

    Dan Kubb authored
  3. Updated SELECT SQL to use INNER JOIN instead of LEFT OUTER JOIN

    Dan Kubb authored
    * LEFT OUTER JOIN is only necessary when using :include, and only when
      we know the other side of the association isn't available.  Since
      :include is not available in DM (yet) it makes sense to use INNER JOIN
      by default.  Also since we specify cardinality on our associations we
      should be able to still use INNER JOIN (I think) when it's a has 1 or
      has 1..n association.
  4. Merge branch 'master' of

    Dirkjan Bussink authored
  5. Rescue errors that could occur during typecasting so variable assignm…

    Dirkjan Bussink authored
    …ent doesn't throw exceptions
  6. Fixed many to many to work with natural keys

    Dan Kubb authored
    * Moved to for creating anonymous models
Commits on Jun 23, 2008
  1. @antw

    Added spec to show how #reload_attributes used to fail on a new recor…

    antw authored Dan Kubb committed
    …ds (fixed in the prev. commit).
  2. @antw

    Fix so that Resource#reload and #reload_attribute only run when the r…

    antw authored Dan Kubb committed
    …esource is not new.
  3. @antw

    Added OneToMany::Proxy#reload to fix Resource#reload on resources whi…

    antw authored Dan Kubb committed
    …ch have a one-to-many association.
  4. @antw

    Added specs to show that Resource#reload calls #reload on associations.

    antw authored Dan Kubb committed
  5. @antw

    Spelling fix.

    antw authored Dan Kubb committed
  6. @antw

    Fix my broken spec for ticket 395.

    antw authored Dan Kubb committed
  7. @antw

    Return false from Resource#destroy if the resource is new.

    antw authored Dan Kubb committed
Commits on Jun 20, 2008
  1. @bernerdschaefer

    OneToMany, array of hashes to initialize new child models.

    bernerdschaefer authored
        *   Team.has n, :players; team.players = [{:name => "John"}];
        *   Removed some old code from OneToMany
  2. @bernerdschaefer
  3. @somebee

    renamed to #to_hash

    somebee authored
  4. @somebee

    whoops, adding array.rb

    somebee authored
  5. Added missing support/array.rb file

    Dan Kubb authored
  6. Stripped whitespace with "sake strip"

    Dan Kubb authored
  7. @somebee

    added spec for collection#keys

    somebee authored
  8. @somebee

    using #to_h in collection

    somebee authored
  9. @somebee

    added Array#to_h in support, to be able to do the same as Hash[ *arra…

    somebee authored
    …y.flatten(1) ] in ruby >=1.8.7
  10. @somebee
  11. Renamed Collection#update and #destroy to #update! and #destroy!

    Dan Kubb authored
    * This is consistent DataMapper's convention of the "!" method meaning
      that the method should skip validating any affected resources.  These
      methods do not load the resources and check to ensure that validation
      passes before performing the update and delete.  Upcoming "safe"
      #update and #destroy methods will be created.
  12. Added more documentation to Collection

    Dan Kubb authored
Commits on Jun 19, 2008
  1. @myabc
  2. removing uneeded spec

    Adam French authored
  3. moving/rewriting docs in newest yard style

    Adam French authored
Something went wrong with that request. Please try again.