public
Rubygem
Description: DataMapper - Core
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-core.git
Search Repo:
Merge git@github.com:sam/dm-core
somebee (author)
Wed May 07 13:54:30 -0700 2008
commit  ce8ccc44ddf810de2f037e2122ece5646200aea2
tree    2a4927e06a863d2ef720d0c0be549e4373a44145
parent  6cc58071331ded6b6f5d8a1cc5a04e4e653f683d parent  8b86e2e9ed0e44af3f4ccf43b1f194f45000af22
...
439
440
441
 
 
442
443
444
...
439
440
441
442
443
444
445
446
0
@@ -439,6 +439,8 @@
0
 
0
       @model.auto_generate_validations(self) if @model.respond_to?(:auto_generate_validations)
0
       @model.property_serialization_setup(self) if @model.respond_to?(:property_serialization_setup)
0
+
0
+ @type.bind(self) if @custom
0
     end
0
 
0
     def determine_visibility # :nodoc:
...
149
150
151
 
 
 
 
 
 
152
153
154
...
149
150
151
152
153
154
155
156
157
158
159
160
0
@@ -149,6 +149,12 @@
0
     def self.load(value, property)
0
       value
0
     end
0
+
0
+ def self.bind(property)
0
+ # This method should not modify the state of this type class, and
0
+ # should produce no side-effects on the type class. It's just a
0
+ # hook to allow your custom-type to modify the property it's bound to.
0
+ end
0
 
0
   end # class Type
0
 

Comments

    No one has commented yet.