aboutsummaryrefslogtreecommitdiffstats
path: root/guides
Commit message (Collapse)AuthorAgeFilesLines
* Remove path config option from Azure serviceAndrew White2018-03-121-1/+0
| | | | | | | | | | | The Active Storage service for Azure Storage has an option called `path` that is ambiguous in meaning. It needs to be set to the primary blob storage endpoint but that can be determined from the blobs client anyway. To simplify the configuration this commit removes the `path` option and gets the endpoint from the blobs client instead. Closes #32225.
* [ci skip] Add missing do.Kasper Timm Hansen2018-03-121-1/+1
|
* Add section to routing guide about config/routes.rb [ci skip]Andrew White2018-03-121-0/+20
| | | | Closes #32219.
* Fix note marks [ci skip]Yauheni Dakuka2018-03-127-9/+9
|
* Update some i18n references in guides (#32182)Chris Salzberg2018-03-091-8/+17
| | | | | | | * Remove reference to Globalize::Backend::Static as this class no longer exists. * Remove reference to google group * Remove confusing reference to Globalize3 * Add section on translating stored content
* Fixes a typo and updates active_job_basics.mdDharam Gollapudi2018-03-081-1/+1
| | | Fixes a typo
* Generate root-relative paths in Active Storage disk service URL methodsGeorge Claghorn2018-03-051-9/+0
| | | | Fixes #32129.
* 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.
* We should call methods with `.method_name` not `::method_name`.utilum2018-02-221-2/+2
| | | | | | Found several instances. Follow up on 63d530c5e68a8cf53603744789f53ccbc7ac1a0e
* 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
| |
* | Update bug report templatesbogdanvlviv2018-02-176-7/+8
| | | | | | | | | | | | Prepare bug report templates for Rails 6.0 development Add missing `require "active_support"` in `guides/bug_report_templates/generic_gem.rb`
* | 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-176-70/+24
| | | | | | | | | | | | 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
| |
* | Start Rails 6.0 development!!!Rafael Mendonça França2018-01-301-8/+1
| | | | | | | | :tada::tada::tada:
* | 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.