app/models/tramway/user/user.rb in tramway-user-2.1.2.1 vs app/models/tramway/user/user.rb in tramway-user-2.1.3

- old
+ new

@@ -1,8 +1,10 @@ # frozen_string_literal: true class Tramway::User::User < ::Tramway::Core::ApplicationRecord has_secure_password + + has_many :social_networks, as: :record, class_name: 'Tramway::Profiles::SocialNetwork' if defined? Tramway::Conference # FIXME: replace to tramway-admin enumerize :role, in: %i[user admin], default: :admin def admin?