Class: FriendlyId::Slug
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- FriendlyId::Slug
- Defined in:
- lib/friendly_id/slug.rb
Overview
A FriendlyId slug stored in an external table.
Instance Method Summary collapse
Instance Method Details
#sluggable ⇒ Object
8 9 10 |
# File 'lib/friendly_id/slug.rb', line 8 def sluggable sluggable_type.constantize.unscoped { super } end |
#to_param ⇒ Object
12 13 14 |
# File 'lib/friendly_id/slug.rb', line 12 def to_param slug end |