Sha256: 65c8cdb975e5a1b26b6bf09e24e15b43ac0070b6ec9ce380f61cf2ee15aa5929

Contents?: true

Size: 150 Bytes

Versions: 2

Compression:

Stored size: 150 Bytes

Contents

class Product < ActiveRecord::Base
  has_many :product_images

  def create_associated_image(image)
    product_images.create(image: image)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin_dropzone-1.0.8 example/app/models/product.rb
rails_admin_dropzone-1.0.7 example/app/models/product.rb