- 19 2月, 2019 5 次提交
-
-
由 Shodai Suzuki 提交于
-
由 Shodai Suzuki 提交于
-
由 Ryuta Kamizono 提交于
Actionpack typo fix [ci skip]
-
由 alkesh26 提交于
-
由 George Claghorn 提交于
When reloading is disabled, after_initialize hooks run after to_prepare hooks have already run for the last time. Since to_prepare hooks always run after application initializers, we don't need need to use an after_initialize hook.
-
- 18 2月, 2019 6 次提交
-
-
由 Ryuta Kamizono 提交于
Return correct date in ActiveModel for time to date conversions
-
由 Ryuta Kamizono 提交于
Since `serialize` is passed user input args (from `where`, schema default, etc), a helper should provide `serialize` if the helper also provide `cast`. Related #32624, 34cc301f, a741208f.
-
由 Ryuta Kamizono 提交于
This is covered by `test_update_all_with_order_and_limit_updates_subset_only` and `test_update_all_with_order_and_limit_and_offset_updates_subset_only`.
-
由 Ryuta Kamizono 提交于
`value_from_multiparameter_assignment` defined by `AcceptsMultiparameterTime` helper requires `default_timezone` method which is defined at `TimeValue` helper. Since `Date` type doesn't include `TimeValue`, I've extracted `Timezone` helper to be shared by `Date`, `DateTime`, and `Time` types.
-
由 Xavier Noria 提交于
-
由 Ryuta Kamizono 提交于
Before: ``` SELECT "comments".* FROM "comments" WHERE "comments"."type" IN ('VerySpecialComment') AND "comments"."post_id" = ? LIMIT ? [["post_id", 4], ["LIMIT", 1]] ``` After: ``` SELECT "comments".* FROM "comments" WHERE "comments"."type" = ? AND "comments"."post_id" = ? LIMIT ? [["type", "VerySpecialComment"], ["post_id", 4], ["LIMIT", 1]] ```
-
- 17 2月, 2019 8 次提交
-
-
由 Ryuta Kamizono 提交于
This fixes a bug that the `foreign_key` and the `foreign_type` are separated as different table conditions if a polymorphic association has a scope that joins another tables.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
Auto correct rubocop offenses
-
由 Yoshiyuki Hirano 提交于
Offenses: railties/lib/rails/autoloaders.rb:1:1: C: [Corrected] Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true. module Rails ^ actionmailer/test/base_test.rb:917:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning. actionmailer/test/base_test.rb:917:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected. actionmailer/test/base_test.rb:917:5: C: [Corrected] Style/RedundantBegin: Redundant begin block detected. begin ^^^^^ actionmailer/test/base_test.rb:918:3: C: [Corrected] Layout/IndentationWidth: Use 2 (not 4) spaces for indentation. events = [] ^^^^ actionmailer/test/base_test.rb:930:1: C: [Corrected] Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end. actionmailer/test/base_test.rb:930:1: C: [Corrected] Layout/TrailingWhitespace: Trailing whitespace detected.
-
由 Ryuta Kamizono 提交于
Raise ActiveRecord::IrreversibleOrderError if nulls first/last is not a single ordering argument.
-
由 Finn Young 提交于
-
由 Ryuta Kamizono 提交于
This follows up 0ee96d13.
-
由 Ryuta Kamizono 提交于
Fix the regex that extract mismatched foreign key information
-
- 16 2月, 2019 15 次提交
-
-
由 Ryuta Kamizono 提交于
The CI failure for `test_errors_for_bigint_fks_on_integer_pk_table` is due to the poor regex that extract all ``` `(\w+)` ``` like parts from the message (`:foreign_key` should be `"old_car_id"`, but `"engines"`): https://travis-ci.org/rails/rails/jobs/494123455#L1703 I've improved the regex more strictly and have more exercised mismatched foreign key tests. Fixes #35294
-
由 Ryuta Kamizono 提交于
Fix possible memory leak of ConnectionHandler
-
由 Yutaka HARA 提交于
refs #35296
-
由 Aaron Patterson 提交于
Show deprecated message instead of raise exception in `compiled_method_container` method
-
由 Ryuta Kamizono 提交于
Since #35212, foreign key feature is supported by all adapters.
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
[ci skip]
-
由 Ryuta Kamizono 提交于
Properly handle cached queries with too many bind parameters
-
由 yuuji.yaginuma 提交于
Since #35036, the subclasses of `ActionView::Base` requires the `compiled_method_container`. This is incompatible. For example, `web-console` use view class that subclass of `ActionView::Base`, and does not work it now cause of this. Actually, since it seems that it is only `ActionView::Base` that `compiled_method_container` is necessary, modified the condition that emits a warning.
-
由 Yuji Yaginuma 提交于
Allow to pass options to `csp_meta_tag`
-
由 yuuji.yaginuma 提交于
Currently `csp_meta_tag` generates `name` attribute only. However, in libraries like `Material-UI` and `JSS`, expect that the meta tag that contains the nonce with `property` attribute. https://material-ui.com/css-in-js/advanced/#how-does-one-implement-csp https://github.com/cssinjs/jss/blob/master/docs/csp.md This patch allows `csp_meta_tag` to specify arbitrary options and allows `nonce` to be passed to those libraries.
-
由 Xavier Noria 提交于
-
由 Rafael França 提交于
AbstractController::Translation#t: dup options
-
由 Gannon McGibbon 提交于
Reword RDBMS note in ActiveRecord basics
-
由 Nazar Matus 提交于
-
- 15 2月, 2019 6 次提交
-
-
由 Vipul A M 提交于
Fix Small Typo in Docs [ci skip]
-
由 Conrad Beach 提交于
[ci skip]
-
由 Ryuta Kamizono 提交于
Deprecate using class level querying methods if the receiver scope regarded as leaked
-
由 Ryuta Kamizono 提交于
This deprecates using class level querying methods if the receiver scope regarded as leaked, since #32380 and #35186 may cause that silently leaking information when people upgrade the app. We need deprecation first before making those.
-
由 Xavier Noria 提交于
Rails.autoloader and Rails.once_autoloader was just tentative API good enough for a first patch. Rails.autoloader is singular and does not convey in its name that there is another autoloader. That might be confusing, for example if you set a logger and miss traces. On the other hand, the name `once_autoloader` is very close to being horrible. Rails.autoloaders.main and Rails.autoloaders.once read better for my taste, and have a nice symmetry. Also, both "main" and "once" are four letters long, short and same length. They are tagged as "rails.main" and "rails.once", respectively. References #35235.
-
由 Matthew Dunbar 提交于
-