Module: MongoMapper::RailsCompatibility::Document
- Defined in:
- lib/mongo_mapper/rails_compatibility/document.rb
Class Method Summary collapse
Class Method Details
.included(model) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/mongo_mapper/rails_compatibility/document.rb', line 4 def self.included(model) model.class_eval do alias_method :new_record?, :new? def human_name self.name.demodulize.titleize end end end |