beautify map invocations of users

This commit is contained in:
wvengen 2013-10-29 18:46:55 +01:00
parent 1870276cd2
commit e968919cce
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@
= f.input :name
= f.input :description, as: :text, input_html: {rows: 10}
= f.input :duration, :as => :select, :collection => 1..3
= f.input :user_list, :as => :string, :input_html => { 'data-pre' => @task.users.map { |u| u.token_attributes }.to_json }
= f.input :user_list, :as => :string, :input_html => { 'data-pre' => @task.users.map(&:token_attributes).to_json }
= f.input :required_users
= f.association :workgroup
= f.input :due_date, as: :date_picker