Sha256: 11ac6d26f56e612105ab51bea3b880c38d9d49d107e0021d3d9c9f4d4cef8e10

Contents?: true

Size: 300 Bytes

Versions: 15

Compression:

Stored size: 300 Bytes

Contents

module Adminpanel
  class ProductsController < Adminpanel::ApplicationController

    private
    def product_params
      params.require(:product).permit(
      :price,
      :name,
      :category_ids,
      :description,
      :photos_attributes => [:product_id, :file]
      )
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
adminpanel-2.2.5 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.2.4 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.2.3 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.2.2 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.2.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.2.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.7 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.6 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.5 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.3 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.2 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.1.0 spec/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.0.1 spec/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.0.0 spec/dummy/app/controllers/adminpanel/products_controller.rb