class ActiveModel::Serializer
def include_associations!(node)
def include_associations!(node) _associations.each do |attr, klass| opts = { :node => node } if options.include?(:include) || options.include?(:exclude) opts[:include] = included_association?(attr) end include! attr, opts end end