aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/querying.rb
diff options
context:
space:
mode:
authorFlorian Thomas <flo@florianthomas.net>2013-08-02 14:52:02 +0200
committerFlorian Thomas <flo@florianthomas.net>2015-05-19 10:43:01 +0200
commit3f46ef1ddab87482b730a3f53987e04308783d8b (patch)
tree3ab3ae220dcfddbca5793aa13a8a45c1dce7201c /activerecord/lib/active_record/querying.rb
parent6c55cffa5bb804fc0291ec4aa82527ec3c57f2d2 (diff)
downloadrails-3f46ef1ddab87482b730a3f53987e04308783d8b.tar.gz
rails-3f46ef1ddab87482b730a3f53987e04308783d8b.tar.bz2
rails-3f46ef1ddab87482b730a3f53987e04308783d8b.zip
added ActiveRecord::Relation#left_outer_joins
Example: User.left_outer_joins(:posts) => SELECT "users".* FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id"
Diffstat (limited to 'activerecord/lib/active_record/querying.rb')
-rw-r--r--activerecord/lib/active_record/querying.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb
index 4e597590e9..b769c90184 100644
--- a/activerecord/lib/active_record/querying.rb
+++ b/activerecord/lib/active_record/querying.rb
@@ -7,7 +7,7 @@ module ActiveRecord
delegate :find_by, :find_by!, to: :all
delegate :destroy, :destroy_all, :delete, :delete_all, :update, :update_all, to: :all
delegate :find_each, :find_in_batches, to: :all
- delegate :select, :group, :order, :except, :reorder, :limit, :offset, :joins, :or,
+ delegate :select, :group, :order, :except, :reorder, :limit, :offset, :joins, :left_outer_joins, :or,
:where, :rewhere, :preload, :eager_load, :includes, :from, :lock, :readonly,
:having, :create_with, :uniq, :distinct, :references, :none, :unscope, to: :all
delegate :count, :average, :minimum, :maximum, :sum, :calculate, to: :all