public
Rubygem
Description: Extras for DataMapper, including bridges to DataObjects::Migrations and Merb::DataMapper
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-more.git
Remove nil values from matching properties
dkubb (author)
Tue May 06 22:19:41 -0700 2008
commit  b3da5cd121ad16e4763dbd4cdc51cb53ed49988f
tree    a93810658cbd9354b700a2008194ca7e3d362a0f
parent  b9e2fc9e4f014219882570188dc431d175f60193
...
19
20
21
22
 
23
24
25
...
19
20
21
 
22
23
24
25
0
@@ -19,7 +19,7 @@ module DataMapper
0
     private
0
 
0
     def update_timestamp_properties
0
- self.class.properties.slice(*TIMESTAMP_PROPERTIES.keys).each do |property|
0
+ self.class.properties.slice(*TIMESTAMP_PROPERTIES.keys).compact.each do |property|
0
         TIMESTAMP_PROPERTIES[property.name][self]
0
       end
0
     end

Comments

    No one has commented yet.