| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
[ci skip] Fixed the documentation of xml_http_request? (aka xhr?)
|
| | |
|
| | |
|
|\ \
| |/
|/|
| |
| |
| | |
lengarvey/add_configuration_option_for_mail_preview
Add configuration to enable mail previews
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Adds `config.action_mailer.preview_enabled`
This allows mail previewing to be enabled easily in non-development
environments such as staging. The default is set to true for development
so no changes should be required to existing Rails applications.
The mail preview path can still be configured using the existing
`config.action_mailer.preview_path` configuration option.
Adding this avoids devs from having to do stuff like:
https://gist.github.com/lengarvey/fa2c9bd6cdbeba96526a
Update actionmailer/CHANGELOG with new configuration.
Update configuring guide with new configuratation.
Add `config.action_mailer.preview_path` to configuring guide.
|
|\ \
| | |
| | | |
Silence warning emitted in tests
|
| | |
| | |
| | |
| | |
| | | |
The instance method `model_name` was being defined multiple times,
causing a redefinition warning.
|
|\ \ \
| |/ /
|/| | |
[ci skip] Add missing prologue section of upgrading ruby on rails guide.
|
| | | |
|
|\ \ \
| |/ /
|/| | |
Fix doc unwanted dl Admin:: [ci skip]
|
|/ / |
|
| |
| |
| |
| | |
Then we only need to extract host once.
|
| |
| |
| |
| | |
Closes #15214
|
| |
| |
| |
| |
| | |
Since we are using both branches of the code is preferable to use
if/else over the early return.
|
|\ \
| | |
| | |
| | | |
Added String support for min and max properties for date field helpers
|
|/ / |
|
| |
| |
| |
| | |
To avoid overload with database rollback
|
| | |
|
|\ \
| | |
| | |
| | | |
Added rollback method to ActiveModel::Dirty
|
| | | |
|
|\ \ \
| | | |
| | | | |
Don't add a second method for attribute existence
|
|/ / /
| | |
| | |
| | |
| | | |
We already had one in the public API that people can use more easily for
the transition
|
|\ \ \
| | | |
| | | | |
Fix 10.3 invite_email.body assert_match documentation example.
|
|/ / /
| | |
| | |
| | |
| | | |
Currently there is no implicit conversion for Mail::Body to string
therefore .to_s must be applied. This is exampled in 10.2.2.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Update documentation on STI change handling
|
|/ / /
| | |
| | | |
Documenting a potential source of confusion about how STI classes handle changes.
|
|\ \ \
| | | |
| | | | |
Simplify creation of default attributes on AR instance
|
| | | |
| | | |
| | | |
| | | | |
`AttributeSet#dup` has all the behavior we need.
|
|\ \ \ \
| | | | |
| | | | | |
Remove array workaround in PG quoting
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We no longer need to do fancy legwork to make sure arrays use a type
object, now that schema methods use a real type object.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Remove unused `array_member` from PG quoting for HStore columns
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Hstore no longer needs additional quoting to be used in an array, the
array type handles it sufficiently.
|
|\ \ \ \
| | | | |
| | | | | |
Use the type object when sending point columns to the DB
|
| | | | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Don't encourage usage of `columns_hash`
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As discussed in https://github.com/plataformatec/simple_form/pull/1094,
we should not encourage usage of `columns_hash`, and instead provide an
alternate method to determine whether or not an attribute exists.
The language `attribute` was chosen over `column` since these are in the
`AttributeMethods` module.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Use `Hash#transform_values` to clean up `AttributeSet`
|
| | |/ / /
| |/| | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Use the type object for sending JSON to the database
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Add `Hash#map_values` to ActiveSupport to simplify a common pattern
|
|/ / /
| | |
| | |
| | |
| | | |
Didn't get a chance to convert existing code, I'll skim through the code
base to make use of this later this afternoon.
|
| | | |
|
| | |
| | |
| | |
| | | |
[ci skip]
|
|\ \ \
| | | |
| | | | |
Rename options param of #time_ago_in_words to match API change
|
| | | |
| | | |
| | | | |
Rename `include_seconds_or_options` to `options` to match 6b9356a (which removed the deprecation introduced by #6077). This has no functional impact because the parameter is passed directly through, but makes it clearer that the parameter no longer supports a boolean as input.
|
|\ \ \ \
| |_|_|/
|/| | | |
Always pass a column with a cast_type to quote
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The only case where we got a column that was not `nil`, but did not
respond to `cast_type` was when type casting the default value during
schema creation. We can look up the cast type, and add that object to
the column definition. Will allow us to consistently rely on the type
objects for type casting in all directions.
|
|\ \ \
| | | |
| | | | |
Add punctuation and fix capitalization in Getting Started guide
|