Module: MongoMapper::RailsCompatibility::EmbeddedDocument::ClassMethods

Defined in:
lib/mongo_mapper/rails_compatibility/embedded_document.rb

Instance Method Summary collapse

Instance Method Details

#column_namesObject



18
19
20
# File 'lib/mongo_mapper/rails_compatibility/embedded_document.rb', line 18

def column_names
  keys.keys
end

#human_nameObject



22
23
24
# File 'lib/mongo_mapper/rails_compatibility/embedded_document.rb', line 22

def human_name
  self.name.demodulize.titleize
end