Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
allotments = []
params[:roles_divisions].map do |rd|
rd[2].each do |d|
allotments << Allotment.create(:user_id => @user.id, :division_id => d.to_i, :role_name => rd[0])
end
end
@user.allotments = allotments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.