Sha256: 16e3e964782bab952bc2faae49a0360f537387e5ceb1949db3a7a562e3a998ec

Contents?: true

Size: 217 Bytes

Versions: 4

Compression:

Stored size: 217 Bytes

Contents

class Product < ActiveRecord::Base

  belongs_to :shop

  list :sizes, after_add: :size_added, after_remove: :size_removed

  serialize :sizes, Array

  def size_added(size)
  end

  def size_removed(size)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
listable_collections-4.0.0.1 test/dummy/app/models/product.rb
listable_collections-4.0.0.0 test/dummy/app/models/product.rb
listable_collections-0.1.0 test/dummy/app/models/product.rb
listable_collections-0.0.1 test/dummy/app/models/product.rb