aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-10 01:48:14 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-10 01:48:14 +0000
commit836f32cf7d5303e6582f4b89664755ab617827fd (patch)
tree015c73b02b1712dc09501bed33e549003f4c4062 /activerecord/lib/active_record
parentd0f192cd75e6b447d67fb1566479d1720fbfc885 (diff)
downloadrails-836f32cf7d5303e6582f4b89664755ab617827fd.tar.gz
rails-836f32cf7d5303e6582f4b89664755ab617827fd.tar.bz2
rails-836f32cf7d5303e6582f4b89664755ab617827fd.zip
Axe outdated :ar_joins commentary
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-xactiverecord/lib/active_record/base.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index b80ade254b..06083bd941 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -437,13 +437,6 @@ module ActiveRecord #:nodoc:
# end
def find(*args)
options = args.extract_options!
- # Note: we extract any :joins option with a non-string value from the options, and turn it into
- # an internal option :ar_joins. This allows code called from here to find the ar_joins, and
- # it bypasses marking the result as read_only.
- # A normal string join marks the result as read-only because it contains attributes from joined tables
- # which are not in the base table and therefore prevent the result from being saved.
- # In the case of an ar_join, the JoinDependency created to instantiate the results eliminates these
- # bogus attributes. See JoinDependency#instantiate, and JoinBase#instantiate in associations.rb.
validate_find_options(options)
set_readonly_option!(options)