Class: FriendlyId::SequelAdapter::Slug
- Inherits:
-
Sequel::Model
- Object
- Sequel::Model
- FriendlyId::SequelAdapter::Slug
- Defined in:
- lib/friendly_id/sequel_adapter/slug.rb
Instance Method Summary collapse
Instance Method Details
#to_friendly_id ⇒ Object
5 6 7 |
# File 'lib/friendly_id/sequel_adapter/slug.rb', line 5 def to_friendly_id sequence.to_i > 1 ? friendly_id_with_sequence : name end |