Sha256: ea3628079840c912b404c21e4f5682cd6fc42d300ccba8376d1248720d7faa62

Contents?: true

Size: 310 Bytes

Versions: 14

Compression:

Stored size: 310 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

14 entries across 14 versions & 1 rubygems

Version Path
adminpanel-2.6.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.6.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.5.5 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.5.4 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.5.3 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.5.2 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.5.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.5.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.4.3 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.4.2 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.4.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.4.0 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.3.1 test/dummy/app/controllers/adminpanel/products_controller.rb
adminpanel-2.3.0 test/dummy/app/controllers/adminpanel/products_controller.rb