Changeset [ba3d0cacb7ae9fa3a5afee9f59a70d19877af1a3] by Dan Kubb

July 9th, 2009 @ 09:51 PM

Pass through arguments/block in Model#new to allow custom #initialize

  • Separated discriminator logic so it is chained with Model#new only when the discriminator property is added.

[#937 state:resolved] http://github.com/datamapper/dm-...

Committed by Dan Kubb

  • M lib/dm-core/model.rb
  • M lib/dm-core/resource.rb
  • M lib/dm-core/types/discriminator.rb
  • M spec/public/types/discriminator_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »