Sha256: 1c96e7d50d574b1b942806a26ecb9310f1181774519a07736ce1ff668f6240f1
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 Bytes
Contents
module Ecm::Staff class PeopleController < Ecm::Staff::ApplicationController def self.resource_class Person end def index @collection = load_collection end def show @resource = load_resource end private def resource_class self.class.resource_class end def resource_scope resource_class.includes(person_positions: :position) end def load_collection resource_scope.all end def load_resource resource_scope.friendly.find(params[:id]) end end end
Version data entries
4 entries across 4 versions & 1 rubygems