Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove development dependency on dm-active-model

  • Loading branch information...
commit affd5391377bfd259c568b872ff190bb753ceb8c 1 parent 8342faf
@paulelliott authored
View
7 Gemfile.lock
@@ -32,9 +32,6 @@ GEM
data_objects (0.10.12)
addressable (~> 2.1)
diff-lcs (1.2.1)
- dm-active_model (1.2.1)
- activemodel (~> 3.0)
- dm-core (~> 1.2.0)
dm-core (1.2.0)
addressable (~> 2.2.6)
dm-do-adapter (1.2.0)
@@ -45,6 +42,8 @@ GEM
dm-sqlite-adapter (1.2.0)
dm-do-adapter (~> 1.2.0)
do_sqlite3 (~> 0.10.6)
+ dm-validations (1.2.0)
+ dm-core (~> 1.2.0)
do_sqlite3 (0.10.12)
data_objects (= 0.10.12)
faraday (0.8.6)
@@ -99,10 +98,10 @@ DEPENDENCIES
activerecord
bson_ext
cucumber
- dm-active_model
dm-core
dm-migrations
dm-sqlite-adapter
+ dm-validations
fabrication!
ffaker
keymaker
View
2  fabrication.gemspec
@@ -21,10 +21,10 @@ Gem::Specification.new do |s|
s.add_development_dependency("bson_ext")
s.add_development_dependency("cucumber")
s.add_development_dependency("sqlite3")
- s.add_development_dependency("dm-active_model")
s.add_development_dependency("dm-core")
s.add_development_dependency("dm-migrations")
s.add_development_dependency("dm-sqlite-adapter")
+ s.add_development_dependency("dm-validations")
s.add_development_dependency("ffaker")
s.add_development_dependency("keymaker")
s.add_development_dependency("mongoid")
View
5 spec/support/data_mapper.rb
@@ -1,4 +1,3 @@
-require 'dm-active_model'
require 'dm-core'
require 'dm-migrations'
@@ -18,6 +17,8 @@ class ParentDataMapperModel
has n, :child_data_mapper_models
+ alias persisted? saved?
+
before :save do
self.before_save_value = 11
end
@@ -29,6 +30,8 @@ class ChildDataMapperModel
property :id, Serial
property :number_field, Integer
+ alias persisted? saved?
+
belongs_to :parent_data_mapper_model
end

0 comments on commit affd539

Please sign in to comment.
Something went wrong with that request. Please try again.