Module: MongoMapper::Plugins::Rails::ClassMethods
- Defined in:
- lib/mongo_mapper/plugins/rails.rb
Instance Method Summary collapse
Instance Method Details
#column_names ⇒ Object
35 36 37 |
# File 'lib/mongo_mapper/plugins/rails.rb', line 35 def column_names keys.keys end |
#has_many(*args) ⇒ Object
31 32 33 |
# File 'lib/mongo_mapper/plugins/rails.rb', line 31 def has_many(*args) many(*args) end |
#has_one(*args) ⇒ Object
27 28 29 |
# File 'lib/mongo_mapper/plugins/rails.rb', line 27 def has_one(*args) one(*args) end |
#human_name ⇒ Object
39 40 41 |
# File 'lib/mongo_mapper/plugins/rails.rb', line 39 def human_name self.name.demodulize.titleize end |