- 12 1月, 2017 11 次提交
-
-
由 प्रथमेश Sonpatki 提交于
fix method name in `Renderer` doc [ci skip]
-
由 yuuji.yaginuma 提交于
`ActionController::Renderer.defaults` was removed in 2db7304c
-
由 Andrew White 提交于
The Numeric extensions like 1.day, 1.month, etc. shouldn't know how the internals of ActiveSupport::Duration works.
-
由 Andrew White 提交于
Since 1.month no longer equals 30.days add some tests to ensure that addition maintains the same day in the month or is the last day in the month if the month has less days than the current day. Also add a test for the behaviour of 12.months == 1.year.
-
由 Akira Matsuda 提交于
(I personally prefer writing one string in one line no matter how long it is, though)
-
由 Akira Matsuda 提交于
-
由 Andrew White 提交于
Fix inconsistent parsing of Durations with both months and years
-
由 Rafael França 提交于
remove unused requires
-
由 Rafael Mendonça França 提交于
This reverts commit 5eff7a9c, reversing changes made to 5f03172f. Reason: It caused a regression. The test case is on the PR.
-
由 yuuji.yaginuma 提交于
Related to 0129ca2e, f7782812, f9ed8332
-
由 Rafael França 提交于
Add .byebug_history to .gitignore
-
- 11 1月, 2017 12 次提交
-
-
由 Vijay Dev 提交于
Conflicts: railties/lib/rails/generators.rb
-
由 प्रथमेश Sonpatki 提交于
Fix grammar in action_dispatch/http/parameters.rb [ci skip]
-
由 kenta-s 提交于
-
由 palkan 提交于
-
由 Andrew White 提交于
Fix indent
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
由 Kouhei Sutou 提交于
-
由 Akira Matsuda 提交于
-
由 Rafael Mendonça França 提交于
It is the proper way to configure custom parameters parser and it was being recommended in the deprecation for ActionDispatch::ParamsParser. [ci skip]
-
由 Rafael França 提交于
Fix typo
-
由 Scott González 提交于
-
- 10 1月, 2017 17 次提交
-
-
由 Kasper Timm Hansen 提交于
Add missing release notes entry for https://github.com/rails/rails/commit/f02a35b86efea24f1e2ab684bc8081ced5eb3b1a [ci skip]
-
由 Kasper Timm Hansen 提交于
Revert "Merge pull request #27619 from dixpac/add_missing_generator_test
-
由 Andrew White 提交于
Make time travel work with subclasses of Time/Date/Datetime
-
由 Akira Matsuda 提交于
-
由 Jonas Nicklas 提交于
Closes #27614 Previously when calling `now` on a subclass of e.g. `Time` it would return an instance of `Time` instead of returning an instance of the subclass. This way, we always return the correct class.
-
由 Akira Matsuda 提交于
clearing AR::Base's active_connections on the "primary" pool loses connections to the in_memory DB when running sqlite3_mem tests
-
由 Akira Matsuda 提交于
so let's test with a tiny inner-class model instead
-
由 Akira Matsuda 提交于
since 79887593, create_all task recreates the connection to AR::Base which doesn't connect to the in_memory database that is set up for tests
-
由 yuuji.yaginuma 提交于
This reverts commit 8cb3cdff, reversing changes made to 3bc747bd. Reason: This test already exists in `SharedGeneratorTests`. Ref: https://github.com/rails/rails/blob/master/railties/test/generators/shared_generator_tests.rb#L109..L112 https://github.com/rails/rails/blob/master/railties/test/generators/app_generator_test.rb#L55..L56
-
由 Yves Senn 提交于
activerecord/test: Fix Mysql2ConnectionTest#test_execute_after_disconnect
-
由 Rafael França 提交于
Improve deprecation message for deprecated reflection class name
-
由 Guillermo Iguaran 提交于
Test `--skip-git` generator option
-
由 Ryuta Kamizono 提交于
-
由 Andrey Novikov 提交于
ActiveSupport::Duration.parse('P3Y') == 3.years # It should be true Duration parsing made independent from any moment of time: Fixed length in seconds is assigned to each duration part during parsing. Changed duration of months and years in seconds to more accurate and logical: 1. The value of 365.2425 days in Gregorian year is more accurate as it accounts for every 400th non-leap year. 2. Month's length is bound to year's duration, which makes sensible comparisons like `12.months == 1.year` to be `true` and nonsensical ones like `30.days == 1.month` to be `false`. Calculations on times and dates with durations shouldn't be affected as duration's numeric value isn't used in calculations, only parts are used. Methods on `Numeric` like `2.days` now use these predefined durations to avoid duplicating of duration constants through the codebase and eliminate creation of intermediate durations.
-
由 Ryuta Kamizono 提交于
Passing a class to `has_and_belongs_to_many` show deprecation message three times. It is enough only once.
-
由 Dylan Thacker-Smith 提交于
Mysql2ConnectionTest#test_execute_after_disconnect was originally added to catch a NoMethodError occuring in execute when the Mysql2Adapter has a nil `@connection`. Pull request #26869 removed the error message check in that test because the error message changed in the mysql2 gem, which caused the test to fail. Now the test wouldn't catch the original bug since the NoMethodError would get turned into a ActiveRecord::StatementInvalid exception. Check the cause of the StatementInvalid exception to make sure it is of the correct type.
-
由 Kasper Timm Hansen 提交于
Deprecate reflection class name to accept a class
-