Commit Graph

5058 Commits

Author SHA1 Message Date
yuuji.yaginuma
b52849d421 Change http postgresql.org links to https [ci skip]
It seems that it accepts only HTTPS connections.
Ref: 7f77cbd996
2017-07-30 21:52:31 +09:00
ydakuka
0e523ffc28 Squashed commit of the following:
commit 4a3d295f3011e771cddead80de7497ca15d15c13
Author: Yauheni Dakuka <yauheni.dakuka@gmail.com>
Date:   Fri Jul 28 14:31:35 2017 +0300

    Update routing.md

commit 620a4ce47288e3ef6504290c78f931214968e7e3
Author: Yauheni Dakuka <yauheni.dakuka@gmail.com>
Date:   Fri Jul 28 14:19:29 2017 +0300

    [ci skip] update routing guide
2017-07-28 15:44:10 +03:00
Yauheni Dakuka
bb5f29bfb7 [ci skip] update routing guide 2017-07-28 11:35:09 +03:00
Sean Griffin
0267019a55 Require arel master in the benchmark template
Pointing at Rails master generally requires pointing at Arel master
2017-07-25 15:50:10 -04:00
jagdeepsingh
c8c16bf87f [ci skip] Add documentation for after_create_commit and after_update_commit callbacks 2017-07-25 12:28:44 +05:30
Rafael França
81d7b9854f Merge pull request #29884 from padi/update_rails_5_upgrade_guide
Updates Rails upgrade guide on `ActionView::Helpers::RecordTagHelper`
2017-07-21 16:46:27 -04:00
Marc Rendl Ignacio
a9c7eaea5d Updates Rails upgrade guide for 4.2 to 5.0 regarding the removal of ActionView::Helpers::RecordTagHelper 2017-07-21 08:51:18 +08:00
Sean Griffin
9914964514 Merge pull request #27662 from nhorton/patch-1
Fixing  "Adding Member Routes" documentation
2017-07-17 11:42:27 -04:00
Sean Griffin
828b05f5f9 Merge pull request #29758 from glaucocustodio/patch-1 [ci skip]
Add documentation for class_attribute default option
2017-07-17 10:53:59 -04:00
Glauco Custódio
5fa6563f09 Add documentation for class_attribute options 2017-07-17 11:36:05 -03:00
Kasper Timm Hansen
a5b14a4e34 Merge pull request #29782 from y-yagi/follow_up_29699
Set `represent_boolean_as_integer` via `configuration`
2017-07-16 21:05:58 +02:00
Koichi ITO
3a900a4e36 Replace Erubis with Erubi in a part of guide [ci skip] 2017-07-16 23:33:02 +09:00
yuuji.yaginuma
a18cf23a9c Set represent_boolean_as_integer via configuration 2017-07-16 20:03:56 +09:00
Kasper Timm Hansen
9930b97e7d Merge pull request #29770 from y-yagi/fix_boolean_column_migration_script
Fix boolean column migration script
2017-07-15 20:23:15 +02:00
Emma Barnes
b47da9814a Remove redundant instances of the word 'simply' from documentation, on the basis that if it was simple, the user wouldn't be reading the docs 2017-07-15 16:40:41 +01:00
willnet
17170cea43 [ci skip]Remove options of javascript_link_tag and stylesheet_link_tag in guides 2017-07-14 10:01:55 +09:00
yuuji.yaginuma
90bb874ea1 Fix boolean column migration script 2017-07-13 07:36:40 +09:00
Matthew Draper
58f10a31b3 Merge pull request #29699 from lugray/represent_boolean_as_integer
Change sqlite3 boolean serialization to use 1 and 0
2017-07-12 23:21:07 +09:30
Lisa Ugray
52e050ed00 Change sqlite3 boolean serialization to use 1 and 0
Abstract boolean serialization has been using 't' and 'f', with MySQL
overriding that to use 1 and 0.

This has the advantage that SQLite natively recognizes 1 and 0 as true
and false, but does not natively recognize 't' and 'f'.

This change in serialization requires a migration of stored boolean data
for SQLite databases, so it's implemented behind a configuration flag
whose default false value is deprecated. The flag itself can be
deprecated in a future version of Rails.  While loaded models will give
the correct result for boolean columns without migrating old data,
where() clauses will interact incorrectly with old data.

While working in this area, also change the abstract adapter to use
`"TRUE"` and `"FALSE"` as quoted values and `true` and `false` for
unquoted.  These are supported by PostreSQL, and MySQL remains
overriden.
2017-07-11 14:52:46 -04:00
Yuki Nishijima
57add37382 Fix english for the rescue_from warning [ci skip] 2017-07-11 12:54:36 -04:00
Lisa Ugray
ec4a836919 Protect from forgery by default
Rather than protecting from forgery in the generated
ApplicationController, add it to ActionController::Base by config. This
configuration defaults to false to support older versions which have
removed it from their ApplicationController, but is set to true for
Rails 5.2.
2017-07-10 16:23:47 -04:00
Daniel Castro
4f7b7c9879 [ci skip] Updated language on validations. 2017-07-09 12:15:56 -04:00
Sage Ross
6a8d618b59 Clarify i18n guide for how pluralization rules work by default
The guide misleadingly indicates that the I18n gem will apply the CLDR pluralization rules for each language. This is not the case; only the English algorithm, with support for :zero, :one, and :other, is available by default. Locale-specific pluralization rules require additional configuration and must be supplied by the application (or by another gem).
2017-07-07 23:10:23 -07:00
Arun Agrawal
6f2b0eb44a Merge pull request #29668 from y-yagi/add_missing_status_code_and_symbol
Add missing http status codes [ci skip]
2017-07-04 09:39:13 +05:30
yuuji.yaginuma
b692955214 Add missing http status codes [ci skip]
Ref: 5401f776f6,
73e08279d4
2017-07-04 12:59:05 +09:00
Matthew Draper
87b3e226d6 Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing
changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
2017-07-02 02:15:17 +09:30
Matthew Draper
3420a14590 Merge pull request #29540 from kirs/rubocop-frozen-string
Enforce frozen string in Rubocop
2017-07-02 01:11:50 +09:30
Eileen M. Uchitelle
6189086c01 Merge pull request #29534 from y-yagi/clear_screenshots_in_tmp_clear_task
Clear screenshots files in `tmp:clear` task
2017-07-01 10:15:37 -04:00
Kir Shatrov
cfade1ec7e Enforce frozen string in Rubocop 2017-07-01 02:11:03 +03:00
Sai Prashanth
05602968b9 [ci skip] run migration before looking at schema 2017-06-30 16:27:00 +05:30
Jorge Dias
1f48de101b Specify correct extension for text layouts
When using render plain the extension for the layout needs to be .text.erb instead of .txt.erb
2017-06-29 00:16:41 +02:00
James Bush
fd54d8449a Fix grammar for documentation of rails/command.rb [ci skip] 2017-06-28 13:06:57 -04:00
Marc Rendl Ignacio
927e986219 Document ActiveRecord's PostgreSQL-specific support for JSONB datatype in RailsGuides
[ci skip]
2017-06-27 17:11:50 +08:00
yuuji.yaginuma
6fbd405a2e Clear screenshots files in tmp:clear task
If system test fails, it creates screenshot under `tmp/screenshots`.
34fe2a4fc7/actionpack/lib/action_dispatch/system_testing/test_helpers/screenshot_helper.rb (L45)

But currently, screenshot files is not cleared by `tmp:clear` task.
This patch make clears screenshot files with `tmp:clear` task as well
as other tmp files.
2017-06-27 07:13:00 +09:00
Yauheni Dakuka
dafe3f82cf Update security.md 2017-06-26 22:17:16 +03:00
Yong Bakos
4d433f8d21 Guides: Clarify partial local variable naming.
Clarify the partial local variable name as being the same as the name
of the partial, minus the _leading_ underscore.
2017-06-23 22:44:55 -07:00
Eileen M. Uchitelle
55a443b847 Merge pull request #29524 from y-yagi/do_not_use_private_api_in_bug_report_templates
Do not use private API in bug report templates
2017-06-22 08:48:37 -04:00
Abraham Chan
3b308f3321 Fix hash conditions documentation [ci skip] 2017-06-22 14:10:17 +10:00
yuuji.yaginuma
2dafc4be22 Do not use private API in bug report templates
`ActiveRecord::Migrator` is private API.
bb9d6eb094/activerecord/lib/active_record/migration.rb (L977)

Therefore, it is not good to use it in bug report templates.
Instead, should use the public API `ActiveRecord::Migration#migrate`.
2017-06-22 08:08:45 +09:00
Akira Matsuda
0f89fdcf25 Shrink image files in the guides using ImageOptim 2017-06-21 01:39:36 +09:00
Prathamesh Sonpatki
f006edeb94
[ci skip] Fixed the attribute name for event.detail 2017-06-20 20:52:25 +05:30
Rafael França
c6d19fc851 Merge pull request #29493 from y-yagi/deprecate_capify
Deprecate an `capify!` method in generators and templates
2017-06-19 16:07:10 -04:00
yuuji.yaginuma
e062c961e9 Deprecate an capify! method in generators and templates
The `capify` command has been removed by Capistrano 3 and became to
`cap install`.
Therefore, the `capify!` method has no meaning in Capistrano 3.
I think that should deprecate.

Ref: 492793916a
2017-06-18 16:51:03 +09:00
utilum
133236fa0a [ci skip] Update fedora SQLite3 package name 2017-06-17 12:37:42 +02:00
Vipul A M
019c7f92f0 Remove references to deprecared raise_runtime_errors from documentation, which is always enabled now. Ref: 655b93bffc and https://github.com/rails/rails/pull/24070 . Fixes #29483 [ci skip] (#29484) 2017-06-17 03:05:37 +05:30
Dmytro Vasin
0cd957ef45 Updated working with javascript readme to support the behavior of rails-ujs. 2017-06-15 08:18:38 +03:00
Vipul A M
8426978c54 Add brakeman to guides/additional resources. Fixes #29383 [ci skip] (#29427) 2017-06-12 18:40:36 +05:30
Vipul A M
76bb366024 Missing dots [ci skip] (#29414) 2017-06-11 17:51:08 +05:30
Vipul A M
1d2cc1324e Merge pull request #29268 from gsamokovarov/delegate-missing-to-guides
Document Module#delegate_missing_to in the guides [ci skip]
2017-06-11 17:40:28 +05:30
Genadi Samokovarov
43512df990 Document Module#delegate_missing_to in the guides
Added a small section for it in the `Active Support Core Extensions`
guide. [ci skip]
2017-06-11 14:00:51 +03:00