Sha256: 6ca08cd41d4da95282516d44d49a34ae6014657f17e1349aba1ae6a2a2fc89e2
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
module JsonapiCompliable module Adapters module ActiveRecord class HasOneSideload < Sideload::HasOne include Inferrence def default_base_scope resource_class.model.all end def scope(parent_ids) base_scope.where(foreign_key => parent_ids) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jsonapi_compliable-1.0.alpha.2 | lib/jsonapi_compliable/adapters/active_record/has_one_sideload.rb |