Changeset 34

Show
Ignore:
Timestamp:
02/13/06 21:26:56 (7 years ago)
Author:
dema
Message:
  • Fixed a serious bug on the class hash generation that would prevent updating the RDF Sesame backend correctly.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/adapt/vendor/semanticrecord/lib/semantic_record/base.rb

    r20 r34  
    158158 
    159159      def class_hash 
    160         @@class_hash ||= MD5.hexdigest to_rdfs(:no_hash => true, :no_cache => true) 
     160        @@class_hash ||= {} 
     161        @@class_hash[self] ||= MD5.hexdigest to_rdfs(:no_hash => true, :no_cache => true) 
    161162      end 
    162163