Add specs for user changing table
This commit is contained in:
@@ -59,6 +59,11 @@ class User
|
||||
active_list_id.present?
|
||||
end
|
||||
|
||||
# only used for testing so far
|
||||
def active_list
|
||||
has_active_list? ? List.find(active_list_id) : nil
|
||||
end
|
||||
|
||||
#####################################
|
||||
# Taken from devise 2.2
|
||||
#####################################
|
||||
|
||||
Reference in New Issue
Block a user