Sha256: 59dcb74dc75496cab43c9e9242a44f8f1b27dc9e3f9ca1763d5be1dad5aa05c7
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
module Ecm module Pictures class GalleriesController < Ecm::Pictures::Configuration.base_controller.constantize before_action :load_collection, only: [:index] before_action :load_resource, only: [:show] def index; end def show; end private def resource_class Gallery end def load_collection @collection = resource_class.all end def load_resource @resource = resource_class.find(params[:id]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems