Sha256: 6a6f6e9206aa54b0779d7c770f6db1538b711a987053ab8d1b2b2a83a98d9826
Contents?: true
Size: 362 Bytes
Versions: 25
Compression:
Stored size: 362 Bytes
Contents
module JsonApiClient module Query class Find < Base self.request_method = :get def build_params(args) @params = case args when Hash args when Array {klass.primary_key.to_s.pluralize.to_sym => args.join(",")} else {klass.primary_key => args} end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems