module JSONAPI::Serialization::IncludePathHelpers

def normalize_include_paths(include_param)

def normalize_include_paths(include_param)
  case include_param
  when Array
    include_param.flat_map { |s| s.to_s.split(",").map(&:strip) }.uniq
  when String
    include_param.split(",").map(&:strip)
  else
    []
  end
end