Sha256: ef470398023fa93ee30319d9ec069ed26c35da4726fc8bcd3b9e59f1cfd3aaca

Contents?: true

Size: 274 Bytes

Versions: 23

Compression:

Stored size: 274 Bytes

Contents

module FriendlyId
  # A FriendlyId slug stored in an external table.
  #
  # @see FriendlyId::History
  class Slug < ActiveRecord::Base
    self.table_name = "friendly_id_slugs"
    belongs_to :sluggable, :polymorphic => true

    def to_param
      slug
    end

  end
end

Version data entries

23 entries across 18 versions & 3 rubygems

Version Path
friendly_id-4.0.5 lib/friendly_id/slug.rb
friendly_id-4.0.4 lib/friendly_id/slug.rb
friendly_id-4.0.3 lib/friendly_id/slug.rb