Skip to content

Commit

Permalink
Axe outdated :ar_joins commentary
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8354 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Dec 10, 2007
1 parent d0f192c commit 836f32c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions activerecord/lib/active_record/base.rb
Expand Up @@ -437,13 +437,6 @@ class << self # Class methods
# end # end
def find(*args) def find(*args)
options = args.extract_options! 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) validate_find_options(options)
set_readonly_option!(options) set_readonly_option!(options)


Expand Down

0 comments on commit 836f32c

Please sign in to comment.