Module: UsersHelper

Defined in:
app/helpers/users_helper.rb

Overview

:nodoc:

Instance Method Summary (collapse)

Instance Method Details

- (Object) options_for_user_role(current = nil)



5
6
7
# File 'app/helpers/users_helper.rb', line 5

def options_for_user_role(current=nil)
  options_for_select( (0..(User::ROLES.count-1)).map {|i| [ User::ROLES[i].to_s.humanize, i] }, current )
end