mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Missing doc updates
This commit is contained in:
parent
854cf3d721
commit
6dc9173a63
3 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*Edge*
|
||||
|
||||
* Added find_last_by dynamic finder #762 [miloops]
|
||||
|
||||
* Internal API: configurable association options and build_association method for reflections so plugins may extend and override. #985 [Hongli Lai]
|
||||
|
||||
* Changed benchmarks to be reported in milliseconds [DHH]
|
||||
|
|
|
@ -274,7 +274,7 @@ module ActiveRecord #:nodoc:
|
|||
# == Dynamic attribute-based finders
|
||||
#
|
||||
# Dynamic attribute-based finders are a cleaner way of getting (and/or creating) objects by simple queries without turning to SQL. They work by
|
||||
# appending the name of an attribute to <tt>find_by_</tt> or <tt>find_all_by_</tt>, so you get finders like <tt>Person.find_by_user_name</tt>,
|
||||
# appending the name of an attribute to <tt>find_by_</tt>, <tt>find_last_by_</tt>, or <tt>find_all_by_</tt>, so you get finders like <tt>Person.find_by_user_name</tt>,
|
||||
# <tt>Person.find_all_by_last_name</tt>, and <tt>Payment.find_by_transaction_id</tt>. So instead of writing
|
||||
# <tt>Person.find(:first, :conditions => ["user_name = ?", user_name])</tt>, you just do <tt>Person.find_by_user_name(user_name)</tt>.
|
||||
# And instead of writing <tt>Person.find(:all, :conditions => ["last_name = ?", last_name])</tt>, you just do <tt>Person.find_all_by_last_name(last_name)</tt>.
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
*Edge*
|
||||
|
||||
* Fixed that sqlite would report "db/development.sqlite3 already exists" whether true or not on db:create #614 [Antonio Cangiano]
|
||||
|
||||
* Added config.threadsafe! to toggle allow concurrency settings and disable the dependency loader [Josh Peek]
|
||||
|
||||
* Turn cache_classes on by default [Josh Peek]
|
||||
|
|
Loading…
Reference in a new issue