Skip to content

Commit 4e4f252

Browse files
committed
No need to include ActiveModel::Validations because ActiveModel::Model already includes it.
1 parent de4fd94 commit 4e4f252

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

lib/value_objects/value.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module ValueObjects
44
class Value
55

66
include ::ActiveModel::Model
7-
include ::ActiveModel::Validations
87

98
def ==(other)
109
self.class == other.class && self.class.attrs.all? { |key| public_send(key) == other.public_send(key) }

spec/value_objects/valid_validator_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
class NilAllowedRecord
44

55
include ActiveModel::Model
6-
include ActiveModel::Validations
76

87
attr_accessor :foo
98

@@ -14,7 +13,6 @@ class NilAllowedRecord
1413
class NilForbiddenRecord
1514

1615
include ActiveModel::Model
17-
include ActiveModel::Validations
1816

1917
attr_accessor :foo
2018

0 commit comments

Comments
 (0)