2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-30 13:37:48 +00:00
moebooru/app/helpers/user_helper.rb
2022-09-06 06:00:13 +09:00

7 lines
224 B
Ruby

module UserHelper
def user_level_select_tag(name, options = {})
choices = CONFIG["user_levels"].to_a.sort_by { |x| x[1] }
select_tag(name, options_for_select(choices, options.delete(:selected)), options)
end
end