views: convert mod dashboard + admin user edit page to simple form.
Fixes bug with the user level select dropdown on the mod dashboard page missing the builder level.
This commit is contained in:
@@ -3,9 +3,9 @@ module Moderator
|
||||
class Report
|
||||
attr_reader :min_date, :max_level
|
||||
|
||||
def initialize(min_date, max_level)
|
||||
@min_date = min_date.present? ? min_date.to_date : 1.week.ago
|
||||
@max_level = max_level.present? ? max_level.to_i : User::Levels::MEMBER
|
||||
def initialize(min_date: 1.week.ago.to_date, max_level: User::Levels::MEMBER)
|
||||
@min_date = min_date
|
||||
@max_level = max_level.to_i
|
||||
end
|
||||
|
||||
def artists
|
||||
|
||||
Reference in New Issue
Block a user