Change SORTING_OPTIONS to has

This commit is contained in:
Anna Anks Nowak
2019-01-01 18:18:20 +01:00
committed by Javi Martín
parent 2523775d9f
commit 12484ed4fd

View File

@@ -1,6 +1,6 @@
class Budget
class Investment < ActiveRecord::Base
SORTING_OPTIONS = [{"id": "id"}, {"title": "title"}, {"supports": "cached_votes_up"}].freeze
SORTING_OPTIONS = [{id: "id"}, {title: "title"}, {supports: "cached_votes_up"}].freeze
include Rails.application.routes.url_helpers
include Measurable