app/models/tramway/user/user.rb in tramway-user-2.1.3.2 vs app/models/tramway/user/user.rb in tramway-user-2.1.3.3
- old
+ new
@@ -12,6 +12,7 @@
role.admin?
end
scope :admins, -> { where role: :admin }
scope :simple_users, -> { where role: :user }
+ scope :is_active, -> { where state: :active }
end