rails 6.1.4
Active Support
-
MemCacheStore: convert any underlying value (including
false) to anEntry.See #42559.
Alex Ghiculescu
-
Fix bug in
number_with_precisionwhen using largeBigDecimalvalues.Fixes #42302.
Federico Aldunate, Zachary Scott
-
Check byte size instead of length on
secure_compare.Tietew
-
Fix
Time.atto not lose:inoption.Ryuta Kamizono
-
Require a path for
config.cache_store = :file_store.Alex Ghiculescu
-
Avoid having to store complex object in the default translation file.
Rafael Mendonça França
Active Model
-
Fix
to_jsonforActiveModel::Dirtyobject.Exclude +mutations_from_database+ attribute from json as it lead to recursion.
Anil Maurya
Active Record
-
Do not try to rollback transactions that failed due to a
ActiveRecord::TransactionRollbackError.Jamie McCarthy
-
Raise an error if
pool_configisnilinset_pool_config.Eileen M. Uchitelle
-
Fix compatibility with
psych >= 4.Starting in Psych 4.0.0
YAML.loadbehaves likeYAML.safe_load. To preserve compatibility Active Record's schema cache loader andYAMLColumnnow usesYAML.unsafe_loadif available.Jean Boussier
-
Support using replicas when using
rails dbconsole.Christopher Thornton
-
Restore connection pools after transactional tests.
Eugene Kenny
-
Change
upsert_allto fails cleanly for MySQL when:unique_byis used.Bastian Bartmann
-
Fix user-defined
self.default_scopeto respect table alias.Ryuta Kamizono
-
Clear
@cache_keyscache afterupdate_all,delete_all,destroy_all.Ryuta Kamizono
-
Changed Arel predications
containsandoverlapsto usequoted_nodeso that PostgreSQL arrays are quoted properly.Bradley Priest
-
Fix
mergewhen thewhereclauses have string contents.Ryuta Kamizono
-
Fix rollback of parent destruction with nested
dependent: :destroy.Jacopo Beschi
-
Fix binds logging for
"WHERE ... IN ..."statements.Ricardo Díaz
-
Handle
falsein relation strict loading checks.Previously when a model had strict loading set to true and then had a relation set
strict_loadingto false the false wasn't considered when deciding whether to raise/warn about strict loading.class Dog < ActiveRecord::Base self.strict_loading_by_default = true has_many :treats, strict_loading: false endIn the example,
dog.treatswould still raise even thoughstrict_loadingwas set to false. This is a bug effecting more than Active Storage which is why I made this PR superceeding #41461. We need to fix this for all applications since the behavior is a little surprising. I took the test from ##41461 and the code suggestion from #41453 with some additions.Eileen M. Uchitelle, Radamés Roriz
-
Fix numericality validator without precision.
Ryuta Kamizono
-
Fix aggregate attribute on Enum types.
Ryuta Kamizono
-
Fix
CREATE INDEXstatement generation for PostgreSQL.eltongo
-
Fix where clause on enum attribute when providing array of strings.
Ryuta Kamizono
-
Fix
unprepared_statementto work it when nesting.Ryuta Kamizono
Action View
-
The
translatehelper now passesdefaultvalues that aren't translation keys throughI18n.translatefor interpolation.Jonathan Hefner
-
Don't attach UJS form submission handlers to Turbo forms.
David Heinemeier Hansson
-
Allow both
current_page?(url_hash)andcurrent_page?(**url_hash)on Ruby 2.7.Ryuta Kamizono
Action Pack
-
Ignore file fixtures on
db:fixtures:loadKevin Sjöberg
-
Fix ActionController::Live controller test deadlocks by removing the body buffer size limit for tests.
Dylan Thacker-Smith
-
Correctly place optional path parameter booleans.
Previously, if you specify a url parameter that is part of the path as false it would include that part of the path as parameter for example:
get "(/optional/:optional_id)/things" => "foo#foo", as: :things things_path(optional_id: false) # => /things?optional_id=falseAfter this change, true and false will be treated the same when used as optional path parameters. Meaning now:
get '(this/:my_bool)/that' as: :that that_path(my_bool: true) # => `/this/true/that` that_path(my_bool: false) # => `/this/false/that`Adam Hess
-
Add support for 'private, no-store' Cache-Control headers.
Previously, 'no-store' was exclusive; no other directives could be specified.
Alex Smith
Active Job
- No changes.
Action Mailer
- No changes.
Action Cable
-
Fix
ArgumentErrorwith ruby 3.0 onRemoteConnection#disconnect.Vladislav
Active Storage
-
The parameters sent to
ffmpegfor generating a video preview image are now configurable underconfig.active_storage.video_preview_arguments.Brendon Muir
-
Fix Active Storage update task when running in an engine.
Justin Malčić*
-
Don't raise an error if the mime type is not recognized.
Fixes #41777.
Alex Ghiculescu
-
ActiveStorage::PreviewErroris raised when a previewer is unable to generate a preview image.Alex Robbin
-
respond with 404 given invalid variation key when asking for representations.
George Claghorn
-
Blobcreation shouldn't crash if no service selected.Alex Ghiculescu
Action Mailbox
- No changes.
Action Text
-
Always render attachment partials as HTML with
:htmlformat inside trix editor.James Brooks
Railties
-
Fix compatibility with
psych >= 4.Starting in Psych 4.0.0
YAML.loadbehaves likeYAML.safe_load. To preserve compatibilityRails.application.config_fornow usesYAML.unsafe_loadif available.Jean Boussier
-
Ensure
Rails.application.config_foralways cast hashes toActiveSupport::OrderedOptions.Jean Boussier
-
Fix create migration generator with
--pretendoption.euxx