Sha256: 8cd7a5826223d7ae86b9e506295f40ce6da4f547258f9c1a68b9a79b3de37f34

Contents?: true

Size: 530 Bytes

Versions: 8

Compression:

Stored size: 530 Bytes

Contents

module Dune::Admin
  class PressAssetsController < BaseController
    actions :all, except: [:show]

    def create
      create! { press_assets_path }
    end

    def update
      update! { press_assets_path }
    end

    def destroy
      destroy! { press_assets_path }
    end

    protected
    def collection
      @press_assets ||= apply_scopes(end_of_association_chain).page(params[:page])
    end

    def permitted_params
      params.permit({ press_asset: PressAsset.attribute_names.map(&:to_sym) })
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dune-admin-1.2.7 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.2.6 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.2.5 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.2.4 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.2.3 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.0.0 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.2.1 app/controllers/dune/admin/press_assets_controller.rb
dune-admin-1.2.0 app/controllers/dune/admin/press_assets_controller.rb