aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
Commit message (Collapse)AuthorAgeFilesLines
* Fix links in the psql guide [ci skip]Yauheni Dakuka2018-03-041-2/+2
|
* Deprecate `active_support/core_ext/hash/compact`yuuji.yaginuma2018-03-021-10/+0
| | | | | Ruby 2.4+ provides `Hash#compact` and `Hash#compact!` natively, so `active_support/core_ext/hash/compact` is no longer necessary.
* Add --expanded option to "rails routes"Benoit Tigeot2018-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | When using rails routes with small terminal or complicated routes it can be very difficult to understand where is the element listed in header. psql had the same issue, that's why they created "expanded mode" you can switch using `\x` or by starting psql with ``` -x --expanded Turn on the expanded table formatting mode. This is equivalent to the \x command. ``` The output is similar to one implemented here for rails routes: db_user-# \du List of roles -[ RECORD 1 ]---------------------------------------------- Role name | super Attributes | Superuser, Create role, Create DB Member of | {} -[ RECORD 2 ]---------------------------------------------- Role name | role Attributes | Superuser, Create role, Create DB, Replication Member of | {}
* Merge pull request #32125 from rails/switch-to-not-enforcing-utf8-by-defaultAndrew White2018-02-271-0/+2
|\ | | | | Don't enforce UTF-8 by default
| * Don't enforce UTF-8 by defaultAndrew White2018-02-271-0/+2
| | | | | | | | | | | | With the disabling of TLS 1.0 by most major websites, continuing to run IE8 or lower becomes increasingly difficult so default to not enforcing UTF-8 encoding as it's not relevant to other browsers.
* | [ci skip]Change requring order of files in docwillnet2018-02-271-1/+1
|/ | | | This change was made at 4a835aa3236eedb135ccf8b59ed3c03e040b8b01
* Correct `to` option's value of the route in the Bound Parameters section in ↵Avneet Singh Malhotra2018-02-261-1/+1
| | | | routing guide.
* Add note to Active Storage guide about S3 permissions [ci skip]Andrew White2018-02-211-0/+2
|
* Merge pull request #32026 from bogdanvlviv/improve-30941Rafael França2018-02-201-14/+13
|\ | | | | Improve ActiveJob custom argument serializers #30941
| * Fix docs of ActiveJob custom argument serializersbogdanvlviv2018-02-171-14/+13
| | | | | | | | | | | | Add `:nodoc:` to `ActiveJob::Serializers` Add `:doc:` to `ActiveJob::Serializers::ObjectSerializer#klass` Express `ActiveJob::Serializers::ObjectSerializer#klass` as private method
* | Fix active_job_basics.md callbacks example [ci skip]fatkodima2018-02-181-1/+1
| |
* | Document :reconnect_attempts option for Redis Cache Store [ci skip]Brian Kephart2018-02-171-3/+8
| |
* | Rails 6 requires Ruby 2.4.1+Jeremy Daer2018-02-175-70/+19
| | | | | | | | | | | | Skipping over 2.4.0 to sidestep the `"symbol_from_string".to_sym.dup` bug. References #32028
* | Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-1/+1
| | | | | | | | Closes #31998
* | Rails 6 requires Ruby 2.3+Jeremy Daer2018-02-173-2/+3
|/
* Merge descriptions related to parallel test into one section [ci skip]yuuji.yaginuma2018-02-171-2/+2
|
* Merge pull request #32015 from ↵Eileen M. Uchitelle2018-02-161-0/+24
|\ | | | | | | | | JPrevost/activestorage_integration_test_cleanup_docs ActiveStorage file cleanup in Integration Tests
| * ActiveStorage file cleanup in Integration TestsJeremy Prevost2018-02-151-0/+24
| | | | | | | | | | Documents ActiveStorage file cleanup in Integration Tests which is similar but slightly different than the existing docs for System Tests.
* | Add test parallelization to Railseileencodes2018-02-151-0/+83
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provides both a forked process and threaded parallelization options. To use add `parallelize` to your test suite. Takes a `workers` argument that controls how many times the process is forked. For each process a new database will be created suffixed with the worker number; test-database-0 and test-database-1 respectively. If `ENV["PARALLEL_WORKERS"]` is set the workers argument will be ignored and the environment variable will be used instead. This is useful for CI environments, or other environments where you may need more workers than you do for local testing. If the number of workers is set to `1` or fewer, the tests will not be parallelized. The default parallelization method is to fork processes. If you'd like to use threads instead you can pass `with: :threads` to the `parallelize` method. Note the threaded parallelization does not create multiple database and will not work with system tests at this time. parallelize(workers: 2, with: :threads) The threaded parallelization uses Minitest's parallel exector directly. The processes paralleliztion uses a Ruby Drb server. For parallelization via threads a setup hook and cleanup hook are provided. ``` class ActiveSupport::TestCase parallelize_setup do |worker| # setup databases end parallelize_teardown do |worker| # cleanup database end parallelize(workers: 2) end ``` [Eileen M. Uchitelle, Aaron Patterson]
* Missing backquote, extra end keyword [ci skip]Yauheni Dakuka2018-02-151-18/+17
|
* Simplify the implementation of custom argument serializersRafael Mendonça França2018-02-141-6/+0
| | | | | | | | | | | | | We can speed up things for the supported types by keeping the code in the way it was. We can also avoid to loop trough all serializers in the deserialization by trying to access the class already in the Hash. We could also speed up the custom serialization if we define the class that is going to be serialized when registering the serializers, but that will remove the possibility of defining a serialzer for a superclass and have the subclass serialized using it.
* Improve documentation on custom serializersRafael Mendonça França2018-02-141-22/+21
|
* Add configuration to set custom serializersRafael Mendonça França2018-02-141-0/+2
|
* Remove non-default serializersEvgenii Pecherkin2018-02-141-4/+0
|
* Introduce serializers to ActiveJobEvgenii Pecherkin2018-02-141-2/+63
|
* Change structure of AS core extensions [ci skip]Yauheni Dakuka2018-02-121-9/+9
|
* Merge pull request #31953 from jameslovejoy/improve-wording-getting-startedEileen M. Uchitelle2018-02-121-13/+13
|\ | | | | Improve wording in getting started guide
| * Improve wording in getting started guideJames Lovejoy2018-02-091-13/+13
| | | | | | | | [ci skip]
* | Remove parentheses [ci skip]Yauheni Dakuka2018-02-121-1/+1
|/
* Merge pull request #31925 from composerinteralia/semicolonEileen M. Uchitelle2018-02-081-12/+0
|\ | | | | Fix grammar bug in security guide [ci skip]
| * Remove password anecdotes from guides [ci skip]Daniel Colson2018-02-071-12/+0
| |
* | Add docs on how to configure Active Storageclaudiob2018-02-081-0/+35
|/ | | | [ci skip]
* Merge pull request #31240 from PHedkvist/sys_test_mobile_guideEileen M. Uchitelle2018-02-061-0/+28
|\ | | | | Example of multiple configurations for system test in guide [ci skip]
| * Example of mobile configuration for system test in guide [ci skip]Pierre Hedkvist2017-12-041-0/+28
| |
* | Correct capitalization of "Rails" in the guide text.Tim Diggins2018-02-031-6/+6
| | | | | | | | correction to #31755 as per https://github.com/rails/rails/pull/31755#discussion_r165819798
* | Fix typoSam Yamashita2018-01-311-1/+1
| |
* | Add Rack::TempfileReaper to tests and docsGeorge Claghorn2018-01-301-0/+5
| |
* | Add ContentSecurityPolicy to list of middlewareclaudiob2018-01-301-0/+4
| | | | | | | | | | Document in the guides the new middleware added in #31162 [ci skip]
* | Merge pull request #31817 from composerinteralia/mediocre-jokeRichard Schneeman2018-01-281-1/+1
|\ \ | | | | | | Remove joke in security guide [ci skip]
| * | Remove joke in security guide [ci skip]Daniel Colson2018-01-281-1/+1
| | | | | | | | | | | | | | | | | | I think this is a joke, although not a great one. It's mildly unprofessional, so I think we should get rid of it.
* | | Merge pull request #31816 from composerinteralia/jquery-referencesRyuta Kamizono2018-01-291-11/+6
|\ \ \ | | | | | | | | Remove out-of-date references to jQuery [ci skip]
| * | | Remove out-of-date references to jQueryDaniel Colson2018-01-281-11/+6
| |/ / | | | | | | | | | Fixes #31703
* | | Update `action_dispatch.default_headers` default value [ci skip]yuuji.yaginuma2018-01-282-2/+8
| | | | | | | | | | | | This was changed with 5d7b70f and 428939b.
* | | Update `google-cloud-storage` gem version [ci skip]yuuji.yaginuma2018-01-281-1/+1
|/ / | | | | | | | | | | | | Because we use `credentials` in an example of configuration files, but `credentials` can not be used unless it is 1.8.0 or later. Ref: 9d65ac3
* | Fix example migrations in Associations guideRyan Lue2018-01-261-17/+9
| |
* | Merge pull request #31755 from timdiggins/adjust-autoloading-in-guidesRafael França2018-01-252-12/+31
|\ \ | | | | | | Clarify autoload_paths and eager_load in guides per current usage.
| * | Clarify autoload_paths and eager_load in guides per current usage. [CI SKIP]Tim Diggins2018-01-212-12/+31
| | |
* | | tweaks for #31704 [ci skip]Ryuta Kamizono2018-01-241-2/+2
| | | | | | | | | | | | | | | * rDBMS -> RDBMS. There is only place using rDBMS. * a SQL -> an SQL
* | | Clarification for noobs. (#31704)loothunter12018-01-232-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update active_record_basics.md I made a bit of clarification for people, who are not familiar with SQL (pretty much like me). However, I don't know what tutorial for MySQL is better, so I haven't inserted a link yet. * [ci skip] For those who new to GitHub Added more instructions for contributing guides. Without them, it was somewhat confusing for me to find what I should actually do. * Update active_record_basics.md Fixed grammar and text wrapping as requested. * Update contributing_to_ruby_on_rails.md Revised instructions. * Update contributing_to_ruby_on_rails.md Typos * Update active_record_basics.md * [ci skip] Update active_record_basics Added a few links to SQL tutorials found on the net. Also, changed MySQL to SQL (or one of its extensions) - I think that it's a good compromise. * [ci skip] I think now it's more clear what to do. * [ci skip] Fixed strings [Rafael Mendonça França + loothunter1]
* | | remove text repetitionutilum2018-01-221-1/+1
| | | | | | | | | | | | [ci skip]