diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-01-20 15:55:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-20 15:55:03 +0100 |
commit | 6feafb8802b2759eb33968a70b6c1cb100bf3926 (patch) | |
tree | 5df6ee7f77b92dec9ab6e848ec663b9f4b5838c4 /app/models/relationship_filter.rb | |
parent | 06f6995860d507ac26f23722506420b5cdae2ffe (diff) |
Various fixes and improvements (#12878)
* Fix unused role routes being generated * Remove unused JavaScript code * Refactor filters code to be DRYer * Fix `.count == 0` comparisons to `.empty?` in views * Fix filters in views
Diffstat (limited to 'app/models/relationship_filter.rb')
-rw-r--r-- | app/models/relationship_filter.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/models/relationship_filter.rb b/app/models/relationship_filter.rb new file mode 100644 index 000000000..51640f494 --- /dev/null +++ b/app/models/relationship_filter.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class RelationshipFilter + KEYS = %i( + relationship + status + by_domain + activity + order + ).freeze +end |