Sha256: 0bc8e04f9196eda86fd99b96bcca70a050e4bb3ba8daa6d70985112466c80692
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
# This is a duplicate of mm-versionable lib/versionable/models/version.rb # with indexing turned off so it doesn't complian when included that there # is no db connection class Version include MongoMapper::Document key :data, Hash key :date, Time key :pos, Integer#, :index => true key :doc_id, String#, :index => true key :message, String key :updater_id, String def content(key) cdata = self.data[key] if cdata.respond_to?(:join) cdata.join(" ") else cdata end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
noodall-core-0.7.3 | lib/versionable/models/version.rb |
noodall-core-0.7.2 | lib/versionable/models/version.rb |