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