Sha256: bc89f292e2da8536b1c75f85721e7e5d2d23b729695e295ce9058c76712717d9
Contents?: true
Size: 369 Bytes
Versions: 4
Compression:
Stored size: 369 Bytes
Contents
module Representable module JSON alias_method :to_hash_without_always_include_attributes, :to_hash def to_hash(options = {}) if options[:include] options[:include].map!(&:to_sym) options[:include] |= self.class.always_include_attributes.map(&:to_sym) end to_hash_without_always_include_attributes(options) end end end
Version data entries
4 entries across 4 versions & 1 rubygems