Files
old-ribica/front-api/controllers/common_for_controllers.rb
2015-01-22 22:20:34 +01:00

5 lines
107 B
Ruby

# converts list of parameters to array of integers
def mass_to_i(*id_strings)
id_strings.map(&:to_i)
end