2015/04/28分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
find_by
andfind_by!
raiseArgumentError
when called without arguments.- Make
unscope
aware of "less than" and "greater than" conditions.
actionmailer/CHANGELOG.md
- mailer previews, make sure labels and values line up.
- mailer previews for
NullMail
instances. Closes #19849.
Small punctuation fixes [ci skip]
rails guideのAction View Overview
の修正です。
クラス名、メソッド名をバッククォートでエスケープするよう修正しています。
Updated request_forgery_protection docs [ci skip]
actionpack/lib/action_controller/metal/request_forgery_protection.rb
のdocの修正です。
Javascript
-> JavaScript
、oauth
-> OAuth
に表記ゆれを修正、1行80文字に収まるよう適切な位置に改行を追加、等を行っています。
AUTH PLAIN is Base64 encoded [ci skip]
actionmailer/lib/action_mailer/base.rb
のdocの修正です。
smtp_settings
のauthentication
オプションに:plain
を指定した場合、パスワードが送られる、となっていたのですが、実際はBase64 encodeされたデータが送信されるので、その旨docを修正しています。
Merge pull request #19718 from eagletmt/find_by-without-arg
activerecord/lib/active_record/relation/finder_methods.rb
の修正です。
find_by
、find_by!
メソッドに引数を指定しなかった場合に、ArgumentError
がraiseされるよう修正しています。
Merge pull request #19546 from DianthuDia/fix_unscope_for_less_than
activerecord/lib/active_record/relation/where_clause.rb
の修正です。
less than
、greater than
についてもunscope
出来るよう修正しています。
# before User.where(id: -Float::INFINITY...2).unscope(where: :id) # => SELECT "users".* FROM "users" WHERE ("users"."id" < 2) # after User.where(id: -Float::INFINITY...2).unscope(where: :id) # => SELECT "users".* FROM "users"
where
に-Float::INFINITY
を指定する書き方始めて知りました。
Unlock sneakers adapter version
Gemfile
の修正です。
sneakers
のバージョンを'0.1.1.pre'で固定していたのから、バージョンの固定を削除しています。
guides, bring back minitest assertion table. [ci skip]
rails guideのA Guide to Testing Rails Applications
の修正です。
testing guideにminitest assertionの一覧を記載したテーブルを再度記載するよう修正しています。
minitestのdocを見れば良いのでは、という事で一度削除したのですが、Railsは否定形の為のメソッドとして独自に_not
メソッドがあり、その説明の為に再度記載するようにしたようです。
Clarify test_order default configuration behaviour [ci skip]
rails guideのConfiguring Rails Applications
の修正です。
Rails 5からconfig.active_support.test_order
のデフォルト値が:random
に変わったので、その旨説明を修正しています。
activerecord/lib/active_record/nested_attributes.rb
のdocの修正です。
attributed
-> attributes
にタイポを修正しています。
Added note about non-GET links getting converted to GET links in mailer templates [ci skip]
rails guideのAction Mailer Basics
の修正です。
generating URLs with named routes
の項に、 mailer templatesではGET
以外のリンクについては正常に表示されない旨注記を追加しています。
GET
以外のリンクを作成するには、jquery-ujsが必要なのですが、mailer templatesではデフォルトでは読み込んで無いから、との事です。
Update instructions to build guides locally [ci skip]
guides/source/api_documentation_guidelines.md
、
guides/source/ruby_on_rails_guides_guidelines.md
のdocの修正です。
長い行の適切な位置に改行を追加、RDocの生成先ディレクトリの説明を追加、等を行っています。
mailer previews, make sure labels and values line up.
railties/lib/rails/templates/rails/mailers/email.html.erb
の修正です。
mailer previewsでFrom
、to
に表示する値が無い場合に、表示がずれてしまうバグがあったのを修正しています。
before
after
mailer previews for NullMail
instances. Closes #19849.
ActionMailerの修正です。