module ActiveModelSerializers
def self.config
def self.config ActiveModel::Serializer.config end
def self.default_include_directive
-
(JSONAPI::IncludeDirective)
-
def self.default_include_directive @default_include_directive ||= JSONAPI::IncludeDirective.new(config.default_includes, allow_wildcard: true) end
def self.location_of_caller
def self.location_of_caller caller[1] =~ /(.*?):(\d+).*?$/i file = Regexp.last_match(1) lineno = Regexp.last_match(2).to_i [file, lineno] end