Sha256: 7b69512cda5b638a0cb95f1f62c52847fe2a5bb630d4e4e9d6d29b4b6d47c6b0

Contents?: true

Size: 161 Bytes

Versions: 7

Compression:

Stored size: 161 Bytes

Contents

class Slug < MLS::Model
  
  default_scope -> { order(:created_at => :desc) }
  
  belongs_to :model, :polymorphic => true
  
  def to_param
    slug
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mls-1.9.0 lib/mls/models/slug.rb
mls-1.8.0 lib/mls/models/slug.rb
mls-1.7.0 lib/mls/models/slug.rb
mls-1.6.0 lib/mls/models/slug.rb
mls-1.5.1 lib/mls/slug.rb
mls-1.5.0 lib/mls/slug.rb
mls-1.4.3 lib/mls/slug.rb