class Doorkeeper::OAuth::Scopes

def to_array(other)

def to_array(other)
  case other
  when Scopes
    other.all
  else
    other.to_a
  end
end