From a17fc20eb122d45a017e99e592e5e159025ab26b Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Fri, 24 Oct 2008 18:05:52 +0530 Subject: [PATCH] Fix a typo --- .../doc/guides/html/2_2_release_notes.html | 68 +++++++++---------- .../doc/guides/source/2_2_release_notes.txt | 2 +- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/railties/doc/guides/html/2_2_release_notes.html b/railties/doc/guides/html/2_2_release_notes.html index 199a673a06..c657be20b4 100644 --- a/railties/doc/guides/html/2_2_release_notes.html +++ b/railties/doc/guides/html/2_2_release_notes.html @@ -230,7 +230,7 @@ ul#navMain {
  • New Dynamic Finders
  • Associations Respect Private/Protected Scope
  • - +
  • Other ActiveRecord Changes
  • @@ -504,11 +504,11 @@ More information :
    -

    5.5. Associations Respect Private/Protected Scope

    -

    Active Record association proxies now respect the scope of methods on the proxied object. Previously (given User has_one :account) @user.account.private_method would call the private method on the associated Account object. That fails in Rails 2.2; if you need this functionality, you should use @user.account.send(:private_method) (or make the method public instead of private or protected). Please note that if you're overriding method_missing, you should also override respond_to to match the behavior in order for associations to function normally.

    -
    -

    5.6. Other ActiveRecord Changes

    +

    5.5. Associations Respect Private/Protected Scope

    +

    Active Record association proxies now respect the scope of methods on the proxied object. Previously (given User has_one :account) @user.account.private_method would call the private method on the associated Account object. That fails in Rails 2.2; if you need this functionality, you should use @user.account.send(:private_method) (or make the method public instead of private or protected). Please note that if you're overriding method_missing, you should also override respond_to to match the behavior in order for associations to function normally.

    +
    +

    5.6. Other ActiveRecord Changes

    -
    -
    -
    def partial_with_implicit_local_assignment
    -  @customer = Customer.new("Marcel")
    -  render :partial => "customer"
    -end
    -
    -

    Previously the above code made available a local variable called customer available inside the partial customer. You should explicitly pass all the variables via :locals hash now.

    -
      -
    • -

      +Implicit local assignments when rendering partials has been deprecated. +

      +
    • +
    +
    +
    +
    def partial_with_implicit_local_assignment
    +  @customer = Customer.new("Marcel")
    +  render :partial => "customer"
    +end
    +
    +

    Previously the above code made available a local variable called customer inside the partial customer. You should explicitly pass all the variables via :locals hash now.

    +
      +
    • +

      country_select has been removed. See the deprecation page for more information and a plugin replacement.

    • diff --git a/railties/doc/guides/source/2_2_release_notes.txt b/railties/doc/guides/source/2_2_release_notes.txt index 303d03548b..2623f21371 100644 --- a/railties/doc/guides/source/2_2_release_notes.txt +++ b/railties/doc/guides/source/2_2_release_notes.txt @@ -401,7 +401,7 @@ def partial_with_implicit_local_assignment end ------------------------------------------------------- -Previously the above code made available a local variable called +customer+ available inside the partial 'customer'. You should explicitly pass all the variables via :locals hash now. +Previously the above code made available a local variable called +customer+ inside the partial 'customer'. You should explicitly pass all the variables via :locals hash now. * +country_select+ has been removed. See the link:http://www.rubyonrails.org/deprecation/list-of-countries[deprecation page] for more information and a plugin replacement. * +ActiveRecord::Base.allow_concurrency+ no longer has any effect.