filtering items by traits

This commit is contained in:
Edin Dazdarevic
2015-02-09 22:22:33 +01:00
parent 02925f8866
commit 12ca06d015
2 changed files with 16 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
# converts querystring to hash
def get_querystring_hash()
Rack::Utils.parse_nested_query(request.query_string)
end
# converts list of parameters to array of integers
def mass_to_i(*id_strings)
id_strings.map(&:to_i)
end
end