<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>File: CHANGELOG</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[
function popupCode( url ) {
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
}
function toggleCode( id ) {
if ( document.getElementById )
elem = document.getElementById( id );
else if ( document.all )
elem = eval( "document.all." + id );
else
return false;
elemStyle = elem.style;
if ( elemStyle.display != "block" ) {
elemStyle.display = "block"
} else {
elemStyle.display = "none"
}
return true;
}
// Make codeblocks hidden by default
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
// ]]>
</script>
</head>
<body>
<div id="fileHeader">
<h1>CHANGELOG</h1>
<table class="header-table">
<tr class="top-aligned-row">
<td><strong>Path:</strong></td>
<td>vendor/rails/activerecord/CHANGELOG
</td>
</tr>
<tr class="top-aligned-row">
<td><strong>Last Update:</strong></td>
<td>Wed Jan 28 22:52:23 +0800 2009</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
<div id="description">
<p>
*2.0.2* (December 16th, 2007)
</p>
<ul>
<li>Ensure optimistic locking handles nil lock_version values properly. Closes
10510 [rick]
</li>
<li>Make the <a href="../../../../classes/Fixtures.html">Fixtures</a>
Test::Unit enhancements more supporting for double-loaded test cases.
Closes 10379 [brynary]
</li>
<li>Fix that validates_acceptance_of still works for non-existent tables
(useful for bootstrapping new databases). Closes 10474 [hasmanyjosh]
</li>
<li>Ensure that the :uniq option for has_many :through associations retains the
order. 10463 [remvee]
</li>
<li>Base.exists? doesn‘t rescue exceptions to avoid hiding SQL errors.
10458 [Michael Klishin]
</li>
<li>Documentation: Active Record exceptions, destroy_all and delete_all. 10444,
10447 [Michael Klishin]
</li>
</ul>
<p>
*2.0.1* (December 7th, 2007)
</p>
<ul>
<li>Removed query cache rescue as it could cause code to be run twice (closes
10408) [DHH]
</li>
</ul>
<p>
*2.0.0* (December 6th, 2007)
</p>
<ul>
<li>Anchor DateTimeTest to fixed <a
href="../../../../classes/DateTime.html">DateTime</a> instead of a variable
value based on Time.now#advance#to_datetime, so that this test passes on
64-bit platforms running Ruby 1.8.6+ [Geoff Buesing]
</li>
<li>Fixed that the Query Cache should just be ignored if the database is
misconfigured (so that the "About your applications environment"
works even before the database has been created) [DHH]
</li>
<li>Fixed that the truncation of strings longer than 50 chars should use
inspect
</li>
</ul>
<p>
so newlines etc are escaped 10385 [Norbert Crombach]
</p>
<ul>
<li>Fixed that habtm associations should be able to set :select as part of
their definition and have that honored [DHH]
</li>
<li>Document how the :include option can be used in Calculations::calculate.
Closes 7446 [adamwiggins, ultimoamore]
</li>
<li>Fix typo in documentation for polymorphic associations w/STI. Closes 7461
[johnjosephbachir]
</li>
<li>Reveal that the type option in migrations can be any supported column type
for your database but also include caveat about agnosticism. Closes 7531
[adamwiggins, mikong]
</li>
<li>More complete documentation for find_by_sql. Closes 7912 [fearoffish]
</li>
<li>Added ActiveRecord::Base#becomes to turn a record into one of another class
(mostly relevant for STIs) [DHH]. Example:
<pre>
render :partial => @client.becomes(Company) # renders companies/company instead of clients/client
</pre>
</li>
<li>Fixed that to_xml should not automatically pass :procs to associations
included with :include 10162 [Cheah Chu Yeow]
</li>
<li>Fix documentation typo introduced in [8250]. Closes 10339 [Henrik N]
</li>
<li>Foxy fixtures: support single-table inheritance. 10234 [tom]
</li>
<li>Foxy fixtures: allow mixed usage to make migration easier and more
attractive. 10004 [lotswholetime]
</li>
<li>Make the record_timestamps class-inheritable so it can be set per model.
10004 [tmacedo]
</li>
<li>Allow validates_acceptance_of to use a real attribute instead of only
virtual (so you can record that the acceptance occured) 7457 [ambethia]
</li>
<li>DateTimes use Ruby‘s default calendar reform setting. 10201 [Geoff
Buesing]
</li>
<li>Dynamic finders on association collections respect association :order and
:limit. 10211, 10227 [Patrick Joyce, Rick Olson, Jack Danger Canty]
</li>
<li>Add ‘foxy’ support for fixtures of polymorphic associations.
10183 [jbarnette, David Lowenfels]
</li>
<li>validates_inclusion_of and validates_exclusion_of allow formatted :message
strings. 8132 [devrieda, Mike Naberezny]
</li>
<li>attr_readonly behaves well with optimistic locking. 10188 [Nick Bugajski]
</li>
<li>Base#to_xml supports the nil="true" attribute like Hash#to_xml.
8268 [Catfish]
</li>
<li>Change plings to the more conventional quotes in the documentation. Closes
10104 [danger]
</li>
<li>Fix HasManyThrough Association so it uses :conditions on the HasMany
Association. Closes 9729 [danger]
</li>
<li>Ensure that column names are quoted. Closes 10134 [wesley.moxam]
</li>
<li>Smattering of grammatical fixes to documentation. Closes 10083 [BobSilva]
</li>
<li>Enhance explanation with more examples for attr_accessible macro. Closes
8095 [fearoffish, Marcel Molina]
</li>
<li>Update association/method mapping table to refected latest collection
methods for has_many :through. Closes 8772 [Pratik Naik]
</li>
<li>Explain semantics of having several different AR instances in a transaction
block. Closes 9036 [jacobat, Marcel Molina]
</li>
<li>Update Schema documentation to use updated sexy migration notation. Closes
10086 [sjgman9]
</li>
<li>Make fixtures work with the new test subclasses. [Tarmo Tänav, Koz]
</li>
<li>Introduce finder :joins with associations. Same :include syntax but with
inner rather than outer joins. 10012 [RubyRedRick]
<pre>
# Find users with an avatar
User.find(:all, :joins => :avatar)
# Find posts with a high-rated comment.
Post.find(:all, :joins => :comments, :conditions => 'comments.rating > 3')
</pre>
</li>
<li>Associations: speedup duplicate record check. 10011 [Pratik Naik]
</li>
<li>Make sure that << works on has_many associations on unsaved records.
Closes 9989 [hasmanyjosh]
</li>
<li>Allow association redefinition in subclasses. 9346 [wildchild]
</li>
<li>Fix has_many :through delete with custom foreign keys. 6466 [naffis]
</li>
<li>Foxy fixtures, from rathole (<a
href="http://svn.geeksomnia.com/rathole/trunk/README">svn.geeksomnia.com/rathole/trunk/README</a>)
<pre>
- stable, autogenerated IDs
- specify associations (belongs_to, has_one, has_many) by label, not ID
- specify HABTM associations as inline lists
- autofill timestamp columns
- support YAML defaults
- fixture label interpolation
</pre>
<p>
Enabled for fixtures that correspond to a model class and don‘t
specify a primary key value. 9981 [jbarnette]
</p>
</li>
没有合适的资源?快使用搜索试试~ 我知道了~
Rails API 文档
共638个文件
html:635个
rid:1个
css:1个
4星 · 超过85%的资源 需积分: 9 84 下载量 41 浏览量
2009-02-02
21:37:18
上传
评论
收藏 1.51MB RAR 举报
温馨提示
Rails 2.0 API 文档. HTML 格式。免费下载
资源推荐
资源详情
资源评论
收起资源包目录
Rails API 文档 (638个子文件)
rdoc-style.css 4KB
CHANGELOG.html 315KB
CHANGELOG.html 261KB
Base.html 231KB
fr_method_index.html 203KB
Base.html 105KB
Selector.html 101KB
ClassMethods.html 95KB
UTF8Handler.html 95KB
Base.html 84KB
CHANGELOG.html 72KB
DateHelper.html 70KB
ClassMethods.html 69KB
PrototypeHelper.html 67KB
SelectorAssertions.html 66KB
AbstractRequest.html 64KB
PostgreSQLAdapter.html 60KB
Fixtures.html 59KB
CHANGELOG.html 58KB
Initializer.html 56KB
fr_file_index.html 54KB
UrlHelper.html 52KB
ClassMethods.html 51KB
Column.html 50KB
Calculations.html 48KB
FormTagHelper.html 48KB
TextHelper.html 48KB
FormHelper.html 47KB
AssetTagHelper.html 46KB
FormOptionsHelper.html 45KB
Calculations.html 43KB
RailsFCGIHandler.html 43KB
GeneratorMethods.html 41KB
Session.html 40KB
DatabaseStatements.html 40KB
SchemaStatements.html 38KB
TimeZone.html 38KB
Create.html 37KB
TestProcess.html 35KB
Configuration.html 35KB
Dispatcher.html 34KB
Errors.html 33KB
fr_class_index.html 32KB
Inflector.html 32KB
XmlSimple.html 30KB
Object.html 30KB
ResponseAssertions.html 30KB
Errors.html 29KB
AbstractAdapter.html 28KB
Base.html 28KB
MysqlAdapter.html 28KB
Callbacks.html 28KB
JavaScriptHelper.html 27KB
Routing.html 27KB
Base.html 26KB
ActiveRecordHelper.html 26KB
NumberHelper.html 26KB
Type.html 26KB
Migration.html 25KB
Chars.html 24KB
HashWithIndifferentAccess.html 24KB
CSS.html 24KB
Options.html 24KB
Inflections.html 23KB
Repositories.html 23KB
RequestProfiler.html 23KB
TableDefinition.html 23KB
ClassMethods.html 23KB
Plugin.html 22KB
XmlMarkup.html 22KB
Time.html 22KB
Kernel.html 22KB
Rescue.html 21KB
Fragments.html 21KB
RailsEnvironment.html 21KB
SecretKeyGenerator.html 21KB
RoutingAssertions.html 20KB
ClassMethods.html 20KB
README.html 20KB
ClassMethods.html 19KB
Base.html 19KB
BufferedLogger.html 19KB
Resources.html 19KB
Calculations.html 19KB
Base.html 19KB
RecursiveHTTPFetcher.html 18KB
Conversions.html 18KB
Destroy.html 18KB
ScriptaculousHelper.html 18KB
WhiteListSanitizer.html 18KB
RequestForgeryProtection.html 18KB
Quoting.html 18KB
Validations.html 17KB
Plugin.html 17KB
Inflections.html 17KB
Discover.html 17KB
Install.html 17KB
CHANGELOG.html 17KB
XmlBase.html 16KB
Serialization.html 16KB
共 638 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- vlolv2014-08-05挺好的学习资料
- duanpeijian2012-08-01文档一般,版本不够新!!
franksinger
- 粉丝: 4
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功