Sha256: 05cb57bf361f792e64295c0e0746ec8d31675f4c403d44e64540affc5dad9403

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

# coding: utf-8

require 'aepic'

module Aepic
  module Concerns
    module Decorator
      extend ActiveSupport::Concern

      module ClassMethods
        def jsonld_context
          @json_context ||= h.polymorphic_url(object_class, format: :jsonld)
        end
      end

      def jsonld_context
        self.class.jsonld_context
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aepic-0.0.4 lib/aepic/concerns/decorator.rb
aepic-0.0.2 lib/aepic/concerns/decorator.rb