about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/serializers/rest/filter_serializer.rb4
-rw-r--r--app/views/filters/_fields.html.haml3
2 files changed, 4 insertions, 3 deletions
diff --git a/app/serializers/rest/filter_serializer.rb b/app/serializers/rest/filter_serializer.rb
index f83d55577..b027e9cc1 100644
--- a/app/serializers/rest/filter_serializer.rb
+++ b/app/serializers/rest/filter_serializer.rb
@@ -7,4 +7,8 @@ class REST::FilterSerializer < ActiveModel::Serializer
   def id
     object.id.to_s
   end
+
+  def irreversible
+    true
+  end
 end
diff --git a/app/views/filters/_fields.html.haml b/app/views/filters/_fields.html.haml
index 33c2ada31..27561c466 100644
--- a/app/views/filters/_fields.html.haml
+++ b/app/views/filters/_fields.html.haml
@@ -10,9 +10,6 @@
 %hr.spacer/
 
 .fields-group
-  = f.input :irreversible, wrapper: :with_label
-
-.fields-group
   = f.input :whole_word, wrapper: :with_label
 
 .fields-group