2014/05/29分のコミットです。
CHANGELOGへの追加はありませんでした。
revertの都合上、減ることもあるんですよねえ、CHANGELOG。それも書こうかなあ。
actionpack/test/controller/params_wrapper_test.rb
の修正です。
with_dup
メソッドを追加して、共通処理を切り出しています。
Revert "Merge pull request #12778 from etehtsea/rake-default-fix"
このPRをrevertしています。
-if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^test(?::|$)/).any? +if defined?(Rake.application) && Rake.application.top_level_tasks.grep(/^(default$|test(:|$))/).any?
test suite実行時に、default
タスクを実行する必要がある為、との事です。
Formatting of content from b1db615 [ci skip]
activerecord/lib/active_record/errors.rb
の修正です。
昨日追加されたTransactionIsolationError
クラスのdocのフォーマットを整えています。
Upgrading Ruby on Rails guide is no longer WIP [ci skip]
guides/source/documents.yaml
の修正です。
work_in_progress: true
を削除しています。
Ensure custom properties work correctly with inheritance
activerecord/lib/active_record/properties.rb
の修正です。
継承先のクラスでproperty
を使用した際に、正常に動作しなかったバグを修正しています。
Maintain column order when overriding existing columns
ActiveRecord::Properties::add_user_provided_columns
メソッドの修正です。
既存のカラムをオーバーライドした際に、カラムの順番を変えないよう対応しています。
Keep closer to other methods that touch @transaction
ActiveRecord::ConnectionAdapters::AbstractAdapter#open_transactions
メソッドをActiveRecord::ConnectionAdapters::DatabaseStatements#open_transactions
に移動しています。
transaction関係のメソッドがDatabaseStatements
クラスにあったので、似た処理をまとめた形ですね。
actionview/lib/action_view/helpers/sanitize_helper.rb
のdocの修正です。
- # config.action_view.sanitized_allowed_attributes = 'id', 'class', 'style' + # config.action_view.sanitized_allowed_attributes = ['id', 'class', 'style']
Arrayを設定する必要があったんですね。
add tests for argument error cases
actionpack/test/dispatch/routing_test.rb
の修正です。
ArgumentError
についてのテストケースを追加しています。
[ci skip] Improve form_helpers.md guide.
rails guideのForm Helpers
の修正です。
生成されるHTMLが誤っているのの修正、シングルクォートの追加等を行っています。
Fix indentation from 1b4b26f [ci skip]
rails guideのForm Helpers
の修正です。
インデントを修正しています。
Ensure we always use instances of the adapter specific column class
ConnectionAdaptersの修正です。
Column
クラス生成用にnew_column
メソッドを追加しています。
actionpack/test/journey/router_test.rb
の修正です。
既に対応済みなので、TODOの説明を削除しています。
Use github url for homepage of log4r [ci skip]
activerecord/README.rdoc
の修正です。
Log4r
のHPをgithubのurlに修正しています。
Merge branch 'master' of github.com:zackperdue/rails into zackperdue-master
rails guideのRails Routing from the Outside In
の修正です。
Overriding Named Route Parameters
の項を追加しています。
resources :videos, param: :identifier
videos GET /videos(.:format) videos#index POST /videos(.:format) videos#create new_videos GET /videos/new(.:format) videos#new edit_videos GET /videos/:identifier/edit(.:format) videos#edit
Video.find_by(identifier: params[:identifier])
こんな書き方出来るんですね。知らなかった。
Add @senny's changed from #14741, including code font for resources
rails guideのRails Routing from the Outside In
の修正です。
上記で追加されたdocの説明修正しています。
Add missing :param
option from the docs for Mapper#match [ci skip]
ActionDispatch::Routing::Mapper::Endpoint::Constraints#root
メソッドのdocの修正です。
:param
オプションについて説明を追加しています。
[ci skip] Make last note show up in postgresql guide.
rails guideのActive Record and PostgreSQL
の修正です。
Note
-> NOTE
に修正しています。
Merge pull request #15061 from tgxworld/remove_unnecessary_include
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
不要なActionController::Testing
のinclude処理を削除しています。
Result sets never override a model's column type
ActiveRecord::Querying#find_by_sql
メソッドの修正です。
result setがmodelのcolumn typeをオーバーライドしないよう修正しています。
MySQL / PostgreSQLでcolumn typeをオーバーライドしてしまうケースがあったようです。