forgeplus/app/models/open_users/educoder.rb

28 lines
536 B
Ruby
Raw Permalink Normal View History

2020-11-23 15:35:03 +08:00
# == Schema Information
#
# Table name: open_users
#
# id :integer not null, primary key
# user_id :integer
# type :string(255)
# uid :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# extra :text(65535)
#
# Indexes
#
# index_open_users_on_type_and_uid (type,uid) UNIQUE
# index_open_users_on_user_id (user_id)
#
2020-08-14 21:56:16 +08:00
class OpenUsers::Educoder < OpenUser
2020-08-14 18:19:00 +08:00
def nickname
extra&.[]('nickname')
end
def en_type
'educoder'
end
end