Refactor available_min_user_levels to view helper.

This commit is contained in:
evazion
2016-11-28 01:36:59 -06:00
parent 77e06b6c08
commit daf1324ab2
3 changed files with 11 additions and 18 deletions

View File

@@ -18,7 +18,7 @@
<% end %>
<% if CurrentUser.is_moderator? %>
<%= f.input :min_level, :as => :select, :collection => ForumTopic.available_min_user_levels.to_a %>
<%= f.input :min_level, :as => :select, :collection => available_min_user_levels.to_a %>
<%= f.input :is_sticky, :label => "Sticky" %>
<%= f.input :is_locked, :label => "Locked" %>
<% end %>