Class: Version

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::Document
Defined in:
lib/versionable/models/version.rb

Instance Method Summary collapse

Instance Method Details

#content(key) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/versionable/models/version.rb', line 13

def content(key)
  cdata = self.data[key]
  if cdata.respond_to?(:join)
    cdata.join(" ")
  else
    cdata
  end
end