Sha256: 9bc123e17566bc25f7f6a588fe0d3dcc2dd19dd6b676e74b854e37e6a32ab165

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

module Refinery
  module PhotoGallery
    module Admin
      class CollectionsController < ::Refinery::AdminController

        crudify :'refinery/photo_gallery/collection', :order => "created_at DESC" , :xhr_paging => true

        protected

        def collection_params
          params.require(:collection).permit(:title, :description)
        end

        alias_method :new_collection_params, :collection_params
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
refinerycms-photo-gallery-0.3.0 app/controllers/refinery/photo_gallery/admin/collections_controller.rb
refinerycms-photo-gallery-0.2.0 app/controllers/refinery/photo_gallery/admin/collections_controller.rb