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