Sha256: 337cefec73ac51f76984877ced261ead3c8c6a43a225abc301c349713dd082c9

Contents?: true

Size: 281 Bytes

Versions: 19

Compression:

Stored size: 281 Bytes

Contents

module Adminpanel
  class ProductsController < Adminpanel::ApplicationController

    private
    def product_params
      params.require(:product).permit(
        :price,
        :name,
        :category_ids,
        :description,
        photo_ids: []
      )
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
adminpanel-3.6.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.6.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.5.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.5.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.7 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.6 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.5 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.4 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.3 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.2 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.4.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.3.4 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.3.3 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.3.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.2.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.2.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.1.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-3.0.0 test/dummy/app/controllers/adminpanel/products_controller.rb