Sha256: aa4e9613bc14bf3ee7845418b284eab3df984e809497f38660fcedf965fe4de3
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
module Strain class Jsonapi::VariantResource < JSONAPI::Resource model_name "::Strain::Variant" attribute :name attribute :schema relationship :articles, to: :many # https://github.com/cerebris/jsonapi-resources/issues/523 def self.resource_type_for(model) 'strain/jsonapi/variant' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strain-0.0.2 | app/resources/strain/jsonapi/variant_resource.rb |
strain-0.0.1 | app/resources/strain/jsonapi/variant_resource.rb |