def relation_options(inclusions, options, name)
      if inclusions.is_a?(Hash)
        inclusions[name]
      else
        { except: options[:except], only: options[:only] }
      end
    end
def relation_options(inclusions, options, name)
      if inclusions.is_a?(Hash)
        inclusions[name]
      else
        { except: options[:except], only: options[:only] }
      end
    end
Since the inclusions can be a hash, symbol, or array of symbols, this is
 provided as a convenience to parse out the options.

 @example Get the association options.
   document.relation_names(:include => [ :addresses ])

 @param [ Hash, Symbol, Array<Symbol> ] inclusions The inclusions.
 @param [ Hash ] options The options.
 @param [ Symbol ] name The name of the association.

 @return [ Hash ] The options for the association.

 @since 2.0.0.rc.6