aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/person.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/models/person.rb')
-rw-r--r--activemodel/test/models/person.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activemodel/test/models/person.rb b/activemodel/test/models/person.rb
index e896e90f98..8dd8ceadad 100644
--- a/activemodel/test/models/person.rb
+++ b/activemodel/test/models/person.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class Person
include ActiveModel::Validations
extend ActiveModel::Translation
@@ -7,6 +9,10 @@ class Person
def condition_is_true
true
end
+
+ def condition_is_false
+ false
+ end
end
class Person::Gender