diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index d54479edbb..5e525a49c0 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -21,6 +21,7 @@ module ActiveRecord alias :model :klass alias :loaded? :loaded alias :default_scoped? :default_scoped + alias :blank? :empty? def initialize(klass, table, values = {}) @klass = klass @@ -575,11 +576,6 @@ module ActiveRecord end end - # Returns true if relation is blank. - def blank? - to_a.blank? - end - def values Hash[@values] end |