Module: Mongoid::Slug
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/mongoid/slug.rb,
lib/mongoid/slug/version.rb
Overview
Generates a URL slug or permalink based on one or more fields in a Mongoid model.
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
"0.5.1"
Instance Method Summary collapse
Instance Method Details
#to_param ⇒ Object
60 61 62 |
# File 'lib/mongoid/slug.rb', line 60 def to_param self.send(slug_name) end |