Changeset [1b7669379b79e7e85be9d6d523f2777b5da0c803] by Dan Kubb

February 2nd, 2010 @ 02:50 AM

Skip saving if the dirty test returns false

  • This will speed up any cases where the resource is being saved and there are before(:save) or after(:save) filters.
  • Removed now redundant code from create and update

[#1155 state:resolved] http://github.com/datamapper/dm-core/commit/1b7669379b79e7e85be9d6d...

Committed by Dan Kubb

  • M lib/dm-core/resource.rb
  • M spec/public/shared/resource_shared_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 »