Sha256: e414d3c39d70eb5938045c63abce6c46e50bcc5b10ded484db8f95eeefc4c067
Contents?: true
Size: 419 Bytes
Versions: 96
Compression:
Stored size: 419 Bytes
Contents
module ForestLiana class ResourceGetter < BaseGetter attr_accessor :record def initialize(resource, params) @resource = resource @params = params @collection_name = ForestLiana.name_for(@resource) @collection = get_collection(@collection_name) compute_includes() end def perform @record = get_resource().eager_load(@includes).find(@params[:id]) end end end
Version data entries
96 entries across 96 versions & 1 rubygems