Sha256: 594b44615ff0941d3136c61f413518c236b1af495d517191a77798261f836578
Contents?: true
Size: 450 Bytes
Versions: 31
Compression:
Stored size: 450 Bytes
Contents
module JsonApiClient module Associations class BaseAssociation attr_reader :attr_name, :klass, :options def initialize(attr_name, klass, options = {}) @attr_name = attr_name @klass = klass @options = options end def association_class @association_class ||= Utils.compute_type(klass, options.fetch(:class_name) do attr_name.to_s.classify end) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems