- 19 6月, 2017 1 次提交
-
-
由 yuuji.yaginuma 提交于
Without `permit`, `AC::Parameters#to_query` raise `AC::UnfilteredParameters`. ```ruby params = ActionController::Parameters.new({ name: "David", nationality: "Danish" }) params.to_query # => ActionController::UnfilteredParameters: unable to convert unpermitted parameters to hash ```
-
- 17 6月, 2017 11 次提交
-
-
由 Guillermo Iguaran 提交于
Remove unused defined association
-
由 Guillermo Iguaran 提交于
Remove FK together with column in MySQL
-
由 Kir Shatrov 提交于
Unlike with other databses, MySQL doesn't let you remove the column if there's a FK on this column. For better developer experience we want to remove the FK together with the column.
-
由 Matthew Draper 提交于
Raise on create for singular association when parent is unpersisted
-
由 Matthew Draper 提交于
Fix `create_table` with query from relation
-
由 Matthew Draper 提交于
Don't require 'unscope' to be the same on both sides of an 'or' relation
-
由 Matthew Draper 提交于
Use nullable `id` column instead of a primary key
-
由 Vipul A M 提交于
Remove references to deprecared raise_runtime_errors from documentation, which is always enabled now. Ref: https://github.com/rails/sprockets-rails/commit/655b93bffc6f51b96a7cc097f9010942693bfaae and https://github.com/rails/rails/pull/24070 . Fixes #29483 [ci skip] (#29484)
-
由 Rafael França 提交于
Add the `<app_root>/test` dir to the `$LOAD_PATH` as a string:
-
由 Edouard CHIN 提交于
- [Rails <= 5.0](https://github.com/rails/rails/blob/5-0-stable/railties/lib/rails/commands/test.rb#L6) used to add the `<app_root>/test` as a string; this behaviour changed in rails 5.1, it's appending a `Pathname` object
-
由 Rafael França 提交于
Log subscriber - avoid rescuing certain exceptions
-
- 16 6月, 2017 7 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Guillermo Iguaran 提交于
Document setting the delivery_job for ActionMailer [ci skip]
-
由 Matthew Mongeau 提交于
-
由 Ryuta Kamizono 提交于
`id` column in `subscribers` was added as a primary key for ignorable in INSERT. But it caused `NotNullViolation` for oracle-enhanced adapter. https://github.com/rsim/oracle-enhanced/issues/1357 I changed the column to nullable to address the issue.
-
由 Rafael França 提交于
[ActiveModel] Improve the performance of mass assignments
-
由 Rafael França 提交于
Don't map id to primary key in raw_write_attribute
-
由 Rafael França 提交于
Fix `dump_schema_information` with empty versions
-
- 15 6月, 2017 20 次提交
-
-
由 Ryuta Kamizono 提交于
-
由 Guillermo Iguaran 提交于
Add test cases for #28274
-
由 Guillermo Iguaran 提交于
Allow mailers to configure their delivery job
-
由 Eugene Kenny 提交于
The `raw_write_attribute` method is used to update a record's attributes to reflect the new state of the database in `update_columns`. The hash provided to `update_columns` is turned into an UPDATE query directly, which means passing an `id` key results in an update to the `id` column, even if the model uses a different attribute as its primary key. When updating the record, we don't want to apply the `id` column change to the primary key attribute, since that's not what happened in the query. Without the code to handle this case, `write_attribute_with_type_cast` no longer contains any logic shared between `raw_write_attribute` and `write_attribute`, so we can inline the code into those two methods.
-
由 Ryuta Kamizono 提交于
Fixes #29460.
-
由 Dan Sherson 提交于
-
由 Vipul A M 提交于
-
由 Vipul A M 提交于
Update `working with javascript` readme to support rails-ujs behaviour. [ci skip]
-
由 Matthew Mongeau 提交于
Setting delivery_job on a mailer class will cause MessageDelivery to use the specified job instead of ActionMailer::DeliveryJob: class MyMailer < ApplicationMailer self.delivery_job = MyCustomDeliveryJob ... end
-
由 Dmytro Vasin 提交于
-
由 Rafael França 提交于
Allow `uuid_test.rb` to be loaded on all adapters
-
由 Rafael França 提交于
Prevent extra `sync_with_transaction_state`
-
由 shotat 提交于
-
由 Ryuta Kamizono 提交于
`object.id` is correctly restored since #29378 has merged. Closes #28274, Closes #28395. [Ryuta Kamizono & Eugene Kenny]
-
由 Rafael França 提交于
Allow translate default option to accept an array similar to i18n.t
-
由 Ryuta Kamizono 提交于
`sync_with_transaction_state` in `to_key` is unneeded because `id` also does.
-
由 Vipul A M 提交于
-
由 Eugene Kenny 提交于
Running `bin/test` from the activerecord directory produces this error: test/cases/adapters/postgresql/uuid_test.rb:43:in `<class:PostgresqlUUIDTest>': undefined method `supports_pgcrypto_uuid?' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x007fc405e72a68> (NoMethodError) The test only actually runs on the PostgreSQL adapter; we can avoid triggering the error on other adapters with this `respond_to?` guard.
-
由 Rafael França 提交于
Avoid overwriting the methods of `AttributeMethods::PrimaryKey`
-
由 Matthew Draper 提交于
Use `require_relative` instead of `require` with full path
-
- 14 6月, 2017 1 次提交
-
-
由 bogdanvlviv 提交于
-