Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

property declaration now users :validates => [contexts] instead of :v…

…alidation_contexts => [contexts]
  • Loading branch information...
commit b4b4cb1647e9296eef6ca695853cc032bfdebb6d 1 parent d526952
Guy van den Berg authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/data_mapper/property.rb
  2. +2 −2 lib/data_mapper/type.rb
View
2  lib/data_mapper/property.rb
@@ -203,7 +203,7 @@ class Property
PROPERTY_OPTIONS = [
:public, :protected, :private, :accessor, :reader, :writer,
:lazy, :default, :nullable, :key, :serial, :field, :size, :length,
- :format, :index, :check, :ordinal, :auto_validation, :validation_context,
+ :format, :index, :check, :ordinal, :auto_validation, :validates, :unique,
:lock, :track
]
View
4 lib/data_mapper/type.rb
@@ -39,7 +39,7 @@ class Type
PROPERTY_OPTIONS = [
:public, :protected, :private, :accessor, :reader, :writer,
:lazy, :default, :nullable, :key, :serial, :field, :size, :length,
- :format, :index, :check, :ordinal, :auto_validation, :validation_context,
+ :format, :index, :check, :ordinal, :auto_validation, :validates, :unique,
:lock, :track
]
@@ -154,4 +154,4 @@ def self.Type(primitive_type, options = {})
Class.new(Type).configure(primitive_type, options)
end
-end # module DataMapper
+end # module DataMapper
Please sign in to comment.
Something went wrong with that request. Please try again.