module Doorkeeper::Models::Scopes

def scopes=(value)

def scopes=(value)
  if value.is_a?(Array)
    super(Doorkeeper::OAuth::Scopes.from_array(value).to_s)
  else
    super(Doorkeeper::OAuth::Scopes.from_string(value.to_s).to_s)
  end
end