Skip to content
This repository
Browse code

release notes: adds a couple of blank lines to get the markup right

  • Loading branch information...
commit 417c31c86e261b0f137b4c0f14aa3e24d7e08732 1 parent dc5957a
Xavier Noria fxn authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  railties/guides/source/3_1_release_notes.textile
2  railties/guides/source/3_1_release_notes.textile
Source Rendered
@@ -346,6 +346,7 @@ has_many :things, :conditions => proc { "foo = #{bar}" } # after
346 346 Inside the proc, +self+ is the object which is the owner of the association, unless you are eager loading the association, in which case +self+ is the class which the association is within.
347 347
348 348 You can have any "normal" conditions inside the proc, so the following will work too:
  349 +
349 350 <ruby>
350 351 has_many :things, :conditions => proc { ["foo = ?", bar] }
351 352 </ruby>
@@ -353,6 +354,7 @@ has_many :things, :conditions => proc { ["foo = ?", bar] }
353 354 * Previously +:insert_sql+ and +:delete_sql+ on +has_and_belongs_to_many+ association allowed you to call 'record' to get the record being inserted or deleted. This is now passed as an argument to the proc.
354 355
355 356 * Added <tt>ActiveRecord::Base#has_secure_password</tt> (via <tt>ActiveModel::SecurePassword</tt>) to encapsulate dead-simple password usage with BCrypt encryption and salting.
  357 +
356 358 <ruby>
357 359 # Schema: User(name:string, password_digest:string, password_salt:string)
358 360 class User < ActiveRecord::Base

0 comments on commit 417c31c

Please sign in to comment.
Something went wrong with that request. Please try again.