AgileVentures/osra — pull request #221 by razorcd (2014-12-15 22:08:44+00:00)
Title: Gems update

I updated all gems. App seems to work well and all tests are green.

We get a deprecation warning from Formtastic gem (from ActiveAdmin gem):

DEPRECATION WARNING: The :member_label option is deprecated in favour of `passing an Array of label/value pairs like [['Justin', 2], ['Kate', 3]] into :collection directly (consider building the array in your model using Model.pluck)`. :member_label will be removed in the next version. (called from block (3 levels) in at /mnt/E698E91B98E8EACF/PERSONAL7/ProjectsS/_RUBY/OSRA/app/admin/sponsor.rb:123)

To fix this, in the active admin files, all :member_label option should be replaced with arrays.
ex:
f.inputs 'Assign OSRA employee' do
f.input :agent, member_label: :user_name
end

should be:

f.inputs 'Assign OSRA employee' do
f.input :agent, :as => :select, :collection => User.pluck(:user_name, :id) #ex: [['Justin', 2], ['Kate', 3]]
end

Let me know if I should carry on with fixing this on all files. At the moment we get all these deprecation warnings while running cucumber.

*Notice I did not update rails from 2.1.2 to 2.1.5