aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/predicates.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_relation/predicates.rb')
-rw-r--r--lib/active_relation/predicates.rb20
1 files changed, 5 insertions, 15 deletions
diff --git a/lib/active_relation/predicates.rb b/lib/active_relation/predicates.rb
index 22fbcd9f0b..e17a9f82fe 100644
--- a/lib/active_relation/predicates.rb
+++ b/lib/active_relation/predicates.rb
@@ -46,27 +46,19 @@ module ActiveRelation
end
class GreaterThanOrEqualTo < Binary
- def predicate_sql
- '>='
- end
+ def predicate_sql; '>=' end
end
class GreaterThan < Binary
- def predicate_sql
- '>'
- end
+ def predicate_sql; '>' end
end
class LessThanOrEqualTo < Binary
- def predicate_sql
- '<='
- end
+ def predicate_sql; '<=' end
end
class LessThan < Binary
- def predicate_sql
- '<'
- end
+ def predicate_sql; '<' end
end
class Match < Binary
@@ -74,8 +66,6 @@ module ActiveRelation
end
class In < Binary
- def predicate_sql
- operand2.inclusion_predicate_sql
- end
+ def predicate_sql; operand2.inclusion_predicate_sql end
end
end \ No newline at end of file