- 24 4月, 2016 29 次提交
-
-
由 Vipul A M 提交于
[ci skip]
-
由 Kasper Timm Hansen 提交于
Fix broken build, channel files are also included in `bin/rails stats` now
-
由 Prathamesh Sonpatki 提交于
- Followup of https://github.com/rails/rails/pull/24709.
-
由 Jeremy Daer 提交于
add channels files in `stats` task
-
由 Jeremy Daer 提交于
Add prepared statements support for `Mysql2Adapter`
-
由 yuuji.yaginuma 提交于
-
由 Guillermo Iguaran 提交于
Deprecate `request_via_redirect` method.
-
由 Jeremy Daer 提交于
Move `select_rows` implementation to super class
-
由 Guillermo Iguaran 提交于
Add `:nodoc:` to `insert_versions_sql` [ci skip]
-
由 Guillermo Iguaran 提交于
Remove in the doc about MySQL versions below 5 [ci skip]
-
由 Guillermo Iguaran 提交于
Move `require 'ipaddr'` in `postgresql/oid/cidr.rb`
-
由 Ryuta Kamizono 提交于
-
由 Ryuta Kamizono 提交于
`IPAddr` is used in `OID::Cidr`.
-
由 Ryuta Kamizono 提交于
Follow up to #23458. Active Record supports MySQL >= 5.0 now.
-
由 Ryuta Kamizono 提交于
Follow up to #24685. `insert_versions_sql` is not public API.
-
由 Prathamesh Sonpatki 提交于
- Followup of https://github.com/rails/rails/issues/18693. - I think we missed deprecating `request_via_redirect` in that pull request. - Originally requested by DHH here https://github.com/rails/rails/issues/18333.
-
由 प्रथमेश Sonpatki 提交于
Fix typo in ActiveJob #retry_job doc
-
由 Graeme Boy 提交于
-
由 Sean Griffin 提交于
Followup of #15771
-
由 Vipul A M 提交于
Make sure we handle explicitly passed nil's to lock_version as well. An explicitly passed nil value is now converted to 0 on LockingType, so that we don't end up with ActiveRecord::StaleObjectError in update record optimistic locking Fixes #24695
-
由 Jeremy Daer 提交于
-
由 Andrew White 提交于
Follow up of https://github.com/rails/rails/commit/c9c5788a527b70d7f9…
-
由 Andrew White 提交于
Previously these methods could return either a DateTime or a Time depending on how the ActiveSupport::TimeWithZone instance had been constructed. Changing to always return an instance of Time eliminates a possible stack level too deep error in to_time where it was wrapping a DateTime instance. As a consequence of this the internal time value is now always an instance of Time in the UTC timezone, whether that's as the UTC time directly or a representation of the local time in the timezone. There should be no consequences of this internal change and if there are it's a bug due to leaky abstractions.
-
由 Andrew White 提交于
Mirrors the Time#subsec method by returning the fraction of the second as a Rational.
-
由 Andrew White 提交于
Time instances can have fractional parts smaller than a nanosecond.
-
由 Andrew White 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Mirrors the DateTime#sec_fraction method by returning the fraction of the second as a Rational.
-
- 23 4月, 2016 11 次提交
-
-
由 Andrew White 提交于
Move `DateTime#getlocal` to `/core_ext/date_time/calculations.rb`
-
由 yui-knk 提交于
`DateTime#getlocal` is newly added public API. It's responsible is same as `DateTime#utc`, so `calculations.rb` is a best plase to define this method. For keeping consistency with `DateTime#utc`, defines `#localtime` and defines `getlocal` as an alias method.
-
由 Andrew White 提交于
In Ruby 2.4 the `to_time` method for both `DateTime` and `Time` will preserve the timezone of the receiver when converting to an instance of `Time`. Since Rails 5.0 will support Ruby 2.2, 2.3 and later we need to introduce a compatibility layer so that apps that upgrade do not break. New apps will have a config initializer file that defaults to match the new Ruby 2.4 behavior going forward. For information about the changes to Ruby see: https://bugs.ruby-lang.org/issues/12189 https://bugs.ruby-lang.org/issues/12271 Fixes #24617.
-
由 Vipul A M 提交于
Actionpack documentation typos [ci skip]
-
由 Tom Kadwill 提交于
-
由 Jeremy Daer 提交于
Re. 6e098284
-
由 Arthur Nogueira Neves 提交于
Fix test name
-
由 Vipul A M 提交于
-
由 Jeremy Daer 提交于
Gracefully fallback on version migrations for sqlite < 3.7.11
-
https://github.com/rails/rails/commit/42dd2336b31a8d98776d039a2b9fd7f834156a78由 Vipul A M 提交于
https://github.com/rails/rails/commit/42dd2336b31a8d98776d039a2b9fd7f834156a78 changed INSERT INTO versions to run in 1 single query. This breaks for sqlite versions < 3.7.11, which is especially the case on Ubuntu 12.04 LTS, that has SQLite version 3.7.9 as default. So we check for support for multi insert, before performing single query inserts, else fallback to older version of running multiple queries. [Vipul A M & Yasuo Honda]
-
由 Sean Griffin 提交于
When the query cache completes, if Active Record is still inside of a transaction, it is because the transaction is meant to be left open above this unit of work (such as transactional fixtures in tests). There were several tests around the behavior of "tests" that were invalid, as tests are not run through the executor. They have been changed to reflect the new behavior, which is closer to what actually occurs in Rails tests. Fixes #23989 Fixes #24491 Close #24500
-