Sha256: 3b2b6bd49b54677cf67d23a078b4a20af9ad6dfc41a3ffb2436b6effc8504ccb

Contents?: true

Size: 133 Bytes

Versions: 6

Compression:

Stored size: 133 Bytes

Contents

class Product < ActiveRecord::Base

  belongs_to :shop
  belongs_to :category

  has_slug :name, scope: %i(shop_id category_id)

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slugs-4.0.0.3 test/dummy/app/models/product.rb
slugs-4.0.0.2 test/dummy/app/models/product.rb
slugs-4.0.0.1 test/dummy/app/models/product.rb
slugs-4.0.0.0 test/dummy/app/models/product.rb
slugs-2.0.1 test/dummy/app/models/product.rb
slugs-2.0.0 test/dummy/app/models/product.rb