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
geothird_friendly_id-4.0.9.5 lib/friendly_id/slug.rb
geothird_friendly_id-4.0.9.4 lib/friendly_id/slug.rb
geothird_friendly_id-4.0.9.3 lib/friendly_id/slug.rb
geothird_friendly_id-4.0.9.2 lib/friendly_id/slug.rb
geothird_friendly_id-4.0.9.1 lib/friendly_id/slug.rb
friendly_id-4.1.0.beta.1 lib/friendly_id/slug.rb
friendly_id-4.0.9 lib/friendly_id/slug.rb
friendly_id-4.0.8 lib/friendly_id/slug.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/friendly_id/slug.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/friendly_id/slug.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/friendly_id/slug.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/friendly_id/slug.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/friendly_id/slug.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/friendly_id/slug.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/friendly_id/slug.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/friendly_id/slug.rb
friendly_id-4.0.7 lib/friendly_id/slug.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/friendly_id/slug.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/friendly_id/slug.rb
friendly_id-4.0.6 lib/friendly_id/slug.rb