diff options
author | Kenta <shirai.kenta@vareal.co.jp> | 2016-03-29 19:50:12 +0900 |
---|---|---|
committer | Kenta <shirai.kenta@vareal.co.jp> | 2016-03-30 00:00:26 +0900 |
commit | 78ea4c598547c46cdfcf71aa484782ac903a3040 (patch) | |
tree | 5067c1b30aca80cf889c1153ff4a17c0e8a7e410 /activerecord/lib | |
parent | 3c29836d1d94c0303f23768d4f2f5d3e8aea03ab (diff) | |
download | rails-78ea4c598547c46cdfcf71aa484782ac903a3040.tar.gz rails-78ea4c598547c46cdfcf71aa484782ac903a3040.tar.bz2 rails-78ea4c598547c46cdfcf71aa484782ac903a3040.zip |
Delegate some additional methods in querying.rb
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/querying.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb index de5b42e987..4e32d73001 100644 --- a/activerecord/lib/active_record/querying.rb +++ b/activerecord/lib/active_record/querying.rb @@ -1,6 +1,6 @@ module ActiveRecord module Querying - delegate :find, :take, :take!, :first, :first!, :last, :last!, :exists?, :any?, :many?, to: :all + delegate :find, :take, :take!, :first, :first!, :last, :last!, :exists?, :any?, :many?, :empty?, :none?, :one?, to: :all delegate :second, :second!, :third, :third!, :fourth, :fourth!, :fifth, :fifth!, :forty_two, :forty_two!, :third_to_last, :third_to_last!, :second_to_last, :second_to_last!, to: :all delegate :first_or_create, :first_or_create!, :first_or_initialize, to: :all delegate :find_or_create_by, :find_or_create_by!, :find_or_initialize_by, to: :all |