app/models/tramway/user.rb in tramway-0.1.1.1 vs app/models/tramway/user.rb in tramway-0.1.2
- old
+ new
@@ -1,13 +1,8 @@
# frozen_string_literal: true
-class Tramway::User < ::Tramway::ApplicationRecord
+class Tramway::User < Tramway::ApplicationRecord
has_secure_password
-
- if defined? Tramway::Conference
- has_many :social_networks, as: :record,
- class_name: 'Tramway::Profiles::SocialNetwork'
- end
scope :admins, -> { where role: :admin }
scope :simple_users, -> { where role: :user }
enumerize :role, in: %i[user admin], default: :admin