fixing tests
This commit is contained in:
17
app/helpers/moderator/dashboards_helper.rb
Normal file
17
app/helpers/moderator/dashboards_helper.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
module Moderator
|
||||
module DashboardsHelper
|
||||
def user_level_select_tag(name, options = {})
|
||||
choices = [
|
||||
["", ""],
|
||||
["Member", 0],
|
||||
["Privileged", 100],
|
||||
["Contributor", 200],
|
||||
["Janitor", 300],
|
||||
["Moderator", 400],
|
||||
["Admin", 500]
|
||||
]
|
||||
|
||||
select_tag(name, options_for_select(choices, params[name].to_i), options)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user