Permalink
Commits on Jun 26, 2008
  1. Merge branch 'master' of git@github.com:sam/dm-core

    sam committed Jun 26, 2008
    Conflicts:
    
    	lib/dm-core/associations/relationship.rb
    	lib/dm-core/associations/relationship_chain.rb
    	lib/dm-core/property.rb
  2. Fix find_const errors due to change in extlib

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

    Dan Kubb committed Jun 24, 2008
    * 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 committed Jun 24, 2008
  3. Updated SELECT SQL to use INNER JOIN instead of LEFT OUTER JOIN

    Dan Kubb committed Jun 24, 2008
    * 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. Added assertions for precision and scale on Float and BigDecimal prop…

    Dan Kubb committed Jun 24, 2008
    …erties
  5. Merge branch 'master' of git@github.com:sam/dm-core

    Dirkjan Bussink committed Jun 24, 2008
  6. Rescue errors that could occur during typecasting so variable assignm…

    Dirkjan Bussink committed Jun 24, 2008
    …ent doesn't throw exceptions
  7. Fixed many to many to work with natural keys

    Dan Kubb committed Jun 24, 2008
    * Moved Resource.new to Model.new for creating anonymous models
Commits on Jun 23, 2008
  1. Added spec to show how #reload_attributes used to fail on a new recor…

    antw committed with Dan Kubb Jun 18, 2008
    …ds (fixed in the prev. commit).
  2. Fix so that Resource#reload and #reload_attribute only run when the r…

    antw committed with Dan Kubb Jun 18, 2008
    …esource is not new.
  3. Added OneToMany::Proxy#reload to fix Resource#reload on resources whi…

    antw committed with Dan Kubb Jun 18, 2008
    …ch have a one-to-many association.
  4. Spelling fix.

    antw committed with Dan Kubb Jun 18, 2008
  5. Fix my broken spec for ticket 395.

    antw committed with Dan Kubb Jun 18, 2008
Commits on Jun 20, 2008
  1. OneToMany, array of hashes to initialize new child models.

    bernerdschaefer committed Jun 20, 2008
        *   Team.has n, :players; team.players = [{:name => "John"}]; team.save
        *   Removed some old code from OneToMany
  2. renamed to #to_hash

    somebee committed Jun 20, 2008
  3. whoops, adding array.rb

    somebee committed Jun 20, 2008
  4. Added missing support/array.rb file

    Dan Kubb committed Jun 20, 2008
  5. Stripped whitespace with "sake strip"

    Dan Kubb committed Jun 20, 2008
  6. added spec for collection#keys

    somebee committed Jun 20, 2008
  7. using #to_h in collection

    somebee committed Jun 20, 2008
  8. added Array#to_h in support, to be able to do the same as Hash[ *arra…

    somebee committed Jun 20, 2008
    …y.flatten(1) ] in ruby >=1.8.7
  9. Renamed Collection#update and #destroy to #update! and #destroy!

    Dan Kubb committed Jun 20, 2008
    * 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.
  10. Added more documentation to Collection

    Dan Kubb committed Jun 20, 2008
  11. Swapped scale and precision so they work correctly

    Dan Kubb committed Jun 19, 2008
Commits on Jun 19, 2008
  1. removing uneeded spec

    Adam French committed Jun 19, 2008
  2. moving/rewriting docs in newest yard style

    Adam French committed Jun 19, 2008