Sha256: 051c87ee03a099fa77e1d0eed6440370df3584624222c8b07595e54c3c8d49ab

Contents?: true

Size: 375 Bytes

Versions: 3

Compression:

Stored size: 375 Bytes

Contents

class Ecm::Downloads::Backend::DownloadCategoriesController < Itsf::Backend::Resource::BaseController
  def self.resource_class
    Ecm::Downloads::DownloadCategory
  end

  private

  def permitted_params
    params
      .require(:download_category)
      .permit(:name, :description, :locale)
  end

  def load_resource
    load_scope.friendly.find(params[:id])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecm_downloads2_backend-2.0.2 app/controllers/ecm/downloads/backend/download_categories_controller.rb
ecm_downloads2_backend-2.0.1 app/controllers/ecm/downloads/backend/download_categories_controller.rb
ecm_downloads2_backend-2.0.0 app/controllers/ecm/downloads/backend/download_categories_controller.rb