diaspora/app/models/api/openid_connect/scope.rb
theworldbright 65c40f236e Load scopes from seeds
Signed-off-by: theworldbright <kent@kentshikama.com>
2016-01-04 16:49:51 +09:00

9 lines
209 B
Ruby

module Api
module OpenidConnect
class Scope < ActiveRecord::Base
has_many :authorizations, through: :authorization_scopes
validates :name, presence: true, uniqueness: true
end
end
end