Sha256: 4ae6abac3a7d8bd351d94c7f4dfd64b47e5f2ad22e53d38b8ec1b3151854735c
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
module PublishMyData class ResourceRenderParams def initialize(resource) @resource = resource end def render_params(opts={}) if opts[:is_html] @resource.eager_load_predicate_triples!(:labels_only => true) @resource.eager_load_object_triples!(:labels_only => true) end {template: 'publish_my_data/resources/show', locals: {resource: @resource}} end end end
Version data entries
5 entries across 5 versions & 1 rubygems