Class: FriendlyId::Slug

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/friendly_id/slug.rb

Overview

A FriendlyId slug stored in an external table.

See Also:

Instance Method Summary collapse

Instance Method Details

#sluggableObject



8
9
10
# File 'lib/friendly_id/slug.rb', line 8

def sluggable
  sluggable_type.constantize.unscoped { super }
end

#to_paramObject



12
13
14
# File 'lib/friendly_id/slug.rb', line 12

def to_param
  slug
end