You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="para"><p>Active Record association proxies now respect the scope of methods on the proxied object. Previously (given User has_one :account) <tt>@user.account.private_method</tt> would call the private method on the associated Account object. That fails in Rails 2.2; if you need this functionality, you should use <tt>@user.account.send(:private_method)</tt> (or make the method public instead of private or protected). Please note that if you're overriding <tt>method_missing</tt>, you should also override <tt>respond_to</tt> to match the behavior in order for associations to function normally.</p></div>
652
-
<divclass="ilist"><ul>
653
-
<li>
654
-
<p>
655
-
Lead Contributor: Adam Milligan
656
-
</p>
657
-
</li>
658
-
</ul></div>
659
-
<h3id="_other_activerecord_changes">5.6. Other ActiveRecord Changes</h3>
<divclass="para"><p>Active Record association proxies now respect the scope of methods on the proxied object. Previously (given User has_one :account) <tt>@user.account.private_method</tt> would call the private method on the associated Account object. That fails in Rails 2.2; if you need this functionality, you should use <tt>@user.account.send(:private_method)</tt> (or make the method public instead of private or protected). Please note that if you're overriding <tt>method_missing</tt>, you should also override <tt>respond_to</tt> to match the behavior in order for associations to function normally.</p></div>
652
+
<divclass="ilist"><ul>
653
+
<li>
654
+
<p>
655
+
Lead Contributor: Adam Milligan
656
+
</p>
657
+
</li>
658
+
</ul></div>
659
+
<h3id="_other_activerecord_changes">5.6. Other ActiveRecord Changes</h3>
<divclass="para"><p>Previously the above code made available a local variable called <tt>customer</tt>available inside the partial <em>customer</em>. You should explicitly pass all the variables via :locals hash now.</p></div>
1079
-
<divclass="ilist"><ul>
1080
-
<li>
1081
-
<p>
1064
+
Implicit local assignments when rendering partials has been deprecated.
1065
+
</p>
1066
+
</li>
1067
+
</ul></div>
1068
+
<divclass="listingblock">
1069
+
<divclass="content"><!-- Generator: GNU source-highlight 2.9
<divclass="para"><p>Previously the above code made available a local variable called <tt>customer</tt> inside the partial <em>customer</em>. You should explicitly pass all the variables via :locals hash now.</p></div>
1079
+
<divclass="ilist"><ul>
1080
+
<li>
1081
+
<p>
1082
1082
<tt>country_select</tt> has been removed. See the <ahref="http://www.rubyonrails.org/deprecation/list-of-countries">deprecation page</a> for more information and a plugin replacement.
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.
404
+
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.
405
405
406
406
* +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.
407
407
* +ActiveRecord::Base.allow_concurrency+ no longer has any effect.
0 commit comments