Commit Graph

189 Commits

Author SHA1 Message Date
Yves Senn
4a9301b3f2 Merge pull request #18363 from andreynering/add-foreign-key-subsection-in-upgrading-guide
Adding subsection on 'Upgrading' guide about foreign key support

[ci skip]
2015-02-11 08:41:06 +01:00
Andrey Nering
e1db9d6418 Adding subsection on 'upgrading' guide about 4.2 foreign key support [ci skip] 2015-02-10 20:45:17 -02:00
robertomiranda
c46c1c1599 Use Module#include instead of send :include, since now is a public method [ci skip]
ref https://bugs.ruby-lang.org/issues/8846
2015-01-31 22:19:48 -05:00
Vipul A M
5cfaf5a46e - Changed IN to ON in markdown renderer condition
- Changed `IN` to `ON` in all note sentences in guides.
2015-01-14 11:52:13 +05:30
claudiob
9c65c539e2 Add config to halt callback chain on return false
This stems from [a comment](rails#17227 (comment)) by @dhh.
In summary:

* New Rails 5.0 apps will not accept `return false` as a way to halt callback chains, and will not display a deprecation warning.
* Existing apps ported to Rails 5.0 will still accept `return false` as a way to halt callback chains, albeit with a deprecation warning.

For this purpose, this commit introduces a Rails configuration option:

```ruby
config.active_support.halt_callback_chains_on_return_false
```

For new Rails 5.0 apps, this option will be set to `false` by a new initializer
`config/initializers/callback_terminator.rb`:

```ruby
Rails.application.config.active_support.halt_callback_chains_on_return_false = false
```

For existing apps ported to Rails 5.0, the initializers above will not exist.
Even running `rake rails:update` will not create this initializer.

Since the default value of `halt_callback_chains_on_return_false` is set to
`true`, these apps will still accept `return true` as a way to halt callback
chains, displaying a deprecation warning.

Developers will be able to switch to the new behavior (and stop the warning)
by manually adding the line above to their `config/application.rb`.

A gist with the suggested release notes to add to Rails 5.0 after this
commit is available at https://gist.github.com/claudiob/614c59409fb7d11f2931
2015-01-02 15:31:56 -08:00
Lucas Caton
93fb7c76b1 Updating guides for Rails 5.0 [ci skip] 2015-01-02 09:05:59 +10:00
Yosuke
50a286db52 adjust args of Bundler.require in guides [ci skip]
Arguments of Bundler.require of generator has been changed from rails4.0.4.

https://github.com/rails/rails/blob/v4.0.4/railties/lib/rails/generators/rails/app/templates/config/application.rb#L16
2014-12-29 12:29:14 +09:00
Xavier Noria
7702974281 warn about reading guides in GitHub
References #18148.
2014-12-23 23:32:50 +01:00
Arthur Neves
85f7924af1
Use serve_static_files in guides [skip ci] 2014-12-22 10:22:14 -05:00
George Millo
2ce3e9e872 Spelling fix [ci skip] 2014-12-18 13:32:06 +00:00
Yuki Nishijima
36e1e31887 [guides] Fix method name inconsistency in a mailer example
[ci skip]
2014-12-12 20:26:39 -08:00
Godfrey Chan
ba58478727 Mention that Action Mailer methods are not deferred [ci skip]
Closes #17965, #17968

[Godfrey Chan, Miklós Fazekas]
2014-12-12 17:02:18 -08:00
Rafael Mendonça França
6961afefd2 Revert "Merge pull request #17943 from jeremywadsack/doc_cache_importability"
This reverts commit b0e7278ddbe483475d7b2e161e65ae18df91b9f8, reversing
changes made to 785d04e3109f69d0b9b9f4732179592f0ef04e52.

This is not true. It is a bug and we will fix in the latest 4.0.x
release.
2014-12-11 12:19:23 -02:00
Richard Schneeman
f9b2ad719a Merge pull request #17942 from yui-knk/fix/upgrading.md
[ci skip] update rails version to 3.2.21
2014-12-06 19:16:49 +08:00
yui-knk
91c4241494 [ci skip] update rails version to 3.2.21 2014-12-06 10:09:09 +09:00
Jeremy Wadsack
a1ffaa362b Add Guides note to change cache name space as Entry data is incompatible between 3.2 and 4.0 2014-12-04 16:06:00 -08:00
Genadi Samokovarov
7f864ccd65 Use web_console 2.0 for 4.2.0.rc1 release
This one replaces the notable web-console mentions in guide and the
default Gemfile.
2014-11-26 02:10:05 +02:00
Genadi Samokovarov
5394f561a5 Remove Web Console /console references in the guides 2014-11-25 20:53:29 +02:00
Godfrey Chan
83c52c0486 ✂️ WIP labels [ci skip] 2014-11-25 04:38:17 -08:00
Godfrey Chan
c42ef3fd02 Prepare for RC: link to the 4-2-stable [ci skip] 2014-11-25 04:33:56 -08:00
Godfrey Chan
692ca9453c Mention log_level deprecation in upgrade guides [ci skip] 2014-11-25 01:51:42 -08:00
Matthew Cullum
331482ab68 Specified beta branch for web-console gem 2014-11-22 20:48:10 -08:00
Dave Powers
4223fa70f9 Replace "behaviour" with "behavior"
Update to consistently use American English [ci skip]
2014-11-11 13:06:53 -05:00
Prathamesh Sonpatki
ae755bc517 Replace Html with HTML [ci skip]
- Everywhere else we using HTML Sanitizer except this place.
2014-11-06 12:25:38 +05:30
Abdelkader Boudih
0249c360a3 Merge pull request #17460 from hbriggs/master
Masked authenticity token section, finder options details, misc typos [ci skip]
2014-10-31 17:57:41 +00:00
Hannah Briggs
d38d8d579c Add masked authenticity token section, details on finder options, misc typos [ci skip] 2014-10-31 10:50:37 -07:00
Hannah Briggs
8185fc734a [ci skip] Fixes typos in section 2.7 "Rails Html Sanitizer", adds content to section 2.8 "Rails DOM Testing" 2014-10-29 13:23:29 -07:00
Dave Powers
1aa68f299a Clarify wording in Rails HTML Sanitizer section
[ci skip]
2014-10-16 16:32:14 -04:00
Dave Powers
8e79abbe63 Fix grammar 2014-10-07 16:32:54 -04:00
Prathamesh Sonpatki
04cced06fa Fix typo in upgrading guide
- [ci skip]
- behvaior -> behavior
2014-09-27 17:12:57 +05:30
Rafael Mendonça França
80990e2a0b rails-html-sanitizer is now the default
Also add to upgrading guide a notice about the deprecated sanitizers
2014-09-25 16:45:45 -03:00
Todd Bealmear
a8571131b9 Added Responders docs, made Web Console docs more consistent. [ci skip] 2014-09-16 07:40:26 -07:00
Rafael Mendonça França
9ba9ce6e68 Fix typo 2014-09-10 22:34:40 -03:00
Rafael Mendonça França
412f651665 Merge pull request #16839 from chancancode/default_test_order
Default to sorting user's test cases for now
2014-09-10 22:34:06 -03:00
yuuji.yaginuma
e6f8cbae0c [ci skip] application.rb -> development.rb in web-console docs 2014-09-10 14:24:27 +09:00
Godfrey Chan
c563656a48 ✂️ "now" [ci skip]
minor fix for #16846
2014-09-08 23:32:15 -07:00
Godfrey Chan
44a9028f85 Merge pull request #16846 from prathamesh-sonpatki/document-error-handling-in-transactions-callbacks
Update upgrading guide about error handling in transactional callbacks [ci skip]
2014-09-08 23:30:10 -07:00
Prathamesh Sonpatki
e40c3eee12 Update upgrading guide about error handling in transactional callbacks
- Part of 16576
- [ci skip]
2014-09-09 11:45:20 +05:30
Todd Bealmear
453f5ecfde Add docs for web-console to 4.2 Upgrade Guide [ci skip] 2014-09-08 20:31:55 -07:00
Godfrey Chan
2b41343c34 Default to sorting user's test cases for now
Goals:

1. Default to :random for newly generated applications
2. Default to :sorted for existing applications with a warning
3. Only show the warning once
4. Only show the warning if the app actually uses AS::TestCase

Fixes #16769
2014-09-08 05:32:16 -07:00
yuuji.yaginuma
2c8badddc9 [ci skip] Fix example code of ActiveRecord::FixtureSet.context_class 2014-08-29 15:41:30 +09:00
Guo Xiang Tan
ce392d9484 Guide fix. [CI SKIP]
Related: https://github.com/rails/rails/pull/16607
2014-08-22 00:27:57 +08:00
Guo Xiang Tan
13d4a9bc2a Upgrade guide pass. [CI SKIP] 2014-08-21 16:23:46 +08:00
Godfrey Chan
1a1f2e122e Some placeholders for the 4.2 upgrade guide [ci skip] 2014-08-19 18:58:20 -07:00
Godfrey Chan
2d24eb4ee7 Clearly mark these as WIP, and invite people to contribute. [ci skip] 2014-08-19 18:50:13 -07:00
Sean Griffin
79d8fb7cfe require 'test_help' -> require 'rails/test_help' 2014-08-18 22:04:10 -06:00
Aditya Kapoor
864469018c fix broken link [ci skip] 2014-08-19 01:26:54 +05:30
Kasper Timm Hansen
1e2ffe7ae6 Prepare for partial release.
- Default to Rails::DeprecatedSanitizer in ActionView::Helpers::SanitizeHelper.
- Add upgrade notes.
- Add sanitizer to new applications Gemfiles.
- Remove 'rails-dom-testing' as a dependency.
2014-08-17 19:25:47 +02:00
Godfrey Chan
49798b52bf Merge pull request #16300 from vast/mention-changes-to-nil-serialization-in-upgrading-from-3.2
Mention changes to `nil` handling in serialized attributes
2014-08-10 20:31:10 -07:00
Stefan Kanev
c294e91d00 Add after_bundle to the release notes and upgrade guide 2014-08-05 19:38:48 +03:00