Module: MongoMapper::Plugins::Rails::InstanceMethods

Defined in:
lib/mongo_mapper_ext/mongo_mapper/fixes.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject

def to_param

id.to_s if persisted? # old realization

end



31
32
33
# File 'lib/mongo_mapper_ext/mongo_mapper/fixes.rb', line 31

def to_param
  id.to_s
end