- 15 3月, 2014 1 次提交
-
-
由 Steven Harman 提交于
-
- 09 3月, 2014 1 次提交
-
-
由 Rashmi Yadav 提交于
-
- 07 3月, 2014 5 次提交
-
-
由 Vijay Dev 提交于
Conflicts: guides/source/4_1_release_notes.md
-
由 dmathieu 提交于
Thank you @bquorning
-
由 dmathieu 提交于
[ci-skip] Closes rails/rails#14294
-
由 Vijay Dev 提交于
Add "Low-Level Caching" part to "Caching With Rails" guide
-
由 Aaron Patterson 提交于
Do note remove `Content-Type` when `render :body`
-
- 06 3月, 2014 6 次提交
-
-
由 Yves Senn 提交于
Fix guide about `config.active_record.default_timezone` [ci skip]
-
由 joker1007 提交于
Now the initial value of ActiveRecord.default_timezone is always :utc
-
由 Nikolay Shebanov 提交于
-
由 Hendy Tanata 提交于
-
由 Jeremy Kemper 提交于
Introduce `Rails.gem_version`
-
由 Prem Sichanugrist 提交于
This method return `Gem::Version.new(Rails.version)`, suggesting a more reliable way to perform version comparison. Example: Rails.version #=> "4.1.2" Rails.gem_version #=> #<Gem::Version "4.1.2"> Rails.version > "4.1.10" #=> false Rails.gem_version > Gem::Version.new("4.1.10") #=> true Gem::Requirement.new("~> 4.1.2") =~ Rails.gem_version #=> true This was originally introduced as `.version` by @charliesome in #8501 but got reverted in #10002 since it was not backward compatible. Also, updating template for `rake update_versions`.
-
- 05 3月, 2014 11 次提交
-
-
由 Prem Sichanugrist 提交于
`render :body` should just not set the `Content-Type` header. By removing the header, it breaks the compatibility with other parts. After this commit, `render :body` will returns `text/html` content type, sets by default from `ActionDispatch::Response`, and it will preserve the overridden content type if you override it. Fixes #14197, #14238 This partially reverts commit 30473768.
-
由 Robin Dupret 提交于
This actually not an issue fixing ; the changelog is referring to the introducing pull request itself.
-
由 Yves Senn 提交于
This is a result of the discussion at https://github.com/rails/rails/pull/14263/files#r10291489
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
Follow up of #10732 - Allow string hash values on AR order method
-
由 Aaron Patterson 提交于
Make exists? use bound values.
-
由 Godfrey Chan 提交于
This reverts commit 475c9658, reversing changes made to 705915ab. We decided that this is not worth busting everyone's cache as this seems like a very unlikely problem. The problem only occurs when the user is 1) not using a namespace, or 2) using the same namesapce for different *kinds* of cache items. The recommended "fix" is to put those cache items into their own namspace: id = 1 Rails.cache.fetch(id, namespace: "user"){ User.find(id) } ids = [1] Rails.cache.fetch(ids, namespace: "users"){ User.find(ids) } See the discussion on #14269 for details.
-
由 Guillermo Iguaran 提交于
Cache key should be different when is Array.
-
由 Marcelo Casiraghi 提交于
This behavior has almost no performance impact: String not allowed 66.910000 0.030000 66.940000 ( 67.024976) String allowed 69.360000 0.030000 69.390000 ( 69.503096) Benchmarked with http://git.io/Y0YuRw.
-
- 04 3月, 2014 16 次提交
-
-
由 David Heinemeier Hansson 提交于
Variants in ActionView::Digestor
-
由 Carlos Antonio da Silva 提交于
-
由 Allen Fair 提交于
HAML and probably other generators extend this class and invoke filename_with_extensions with the old signature (without format). This makes the second argument optional and defaults it to the #format method which could be overridden as well. Closes #14132.
-
由 Piotr Chmolowski 提交于
Take variants into account when calculating template digests in ActionView::Digest. Digestor#digest now takes a hash as an argument to support variants and allow more flexibility in the future. Old-style arguments have been deprecated. Fixes #14242
-
由 Carlos Antonio da Silva 提交于
-
由 Yves Senn 提交于
Fix enum test unused variable warning.
-
由 Yves Senn 提交于
Add Enum type to postgresql adapter's oids to prevent unknown OID warnings
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
There's no need to rely on Active Support's Hash#reverse_merge for simple cases with default values, since we can just merge from the default rather than reverse merge from the options. This also avoids the creation of one extra hash object by moving to a Hash#merge! call.
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
Fixes #14254 ActionView button_tag helper default options values issue.
-
由 Dieter Komendera 提交于
-
由 Sergey Prikhodko 提交于
-
由 Martin Schürrer 提交于
When we build a query with an inline value that is a numeric (e.g. because it's out of range for an int4) PostgreSQL doesn't use an index on the column, since it's now comparing numerics and not int4s. This leads to a _very_ slow query. When we use bound parameters instead of inline values PostgreSQL raises numeric_value_out_of_range since no automatic coercion happens.
-
由 Arthur Neves 提交于
`cache.fetch(['foo'])` and `cache.fetch('foo')` should generate different cache keys as they are not equivalents. [related #8615] [related #8614]
-