- 21 8月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 20 8月, 2012 6 次提交
-
-
由 Pratik Naik 提交于
-
由 Rafael Mendonça França 提交于
Access @rs only through attr_accessor
-
由 tomykaira 提交于
-
由 Xavier Noria 提交于
Ruby does not pass the nesting to const_missing (unfortunately). That second argument was there in case that changed, Yehuda sent a patch to MRI http://bugs.ruby-lang.org/issues/2740 but there is not much movement there and Matz told me in Amsterdam there was no immediate plan to pass the nesting. So let's go back to implement what happens now, and if in the future we get the nesting then we will adapt this. Double-checked this with Mr Katz.
-
由 Carlos Antonio da Silva 提交于
This method was added to be shared between update_attribute and update_column in 50725cec, but since update_attribute was removed, and update_column has changed to delegate to update_columns, the method is not used anywhere anymore. Also remove "key.to_s" conversion when raising readonly error, since the key is being interpolated.
-
由 Xavier Noria 提交于
-
- 19 8月, 2012 5 次提交
-
-
由 Rafael Mendonça França 提交于
Fix "last equality wins" logic in relation merge
-
由 Ernie Miller 提交于
This is a real fix (as compared to the band-aid in b127d86c), which uses the recently-added equality methods for ARel nodes. It has the side benefit of simplifying the merge code a bit.
-
由 Carlos Antonio da Silva 提交于
Use inversed parent for first and last child of has_many association
-
由 Rafael Mendonça França 提交于
Added X-Content-Type-Options to the header defaults.
-
由 Jim Jones 提交于
With a value of "nosniff", this prevents Internet Explorer from MIME-sniffing a response away from the declared content-type.
-
- 18 8月, 2012 27 次提交
-
-
由 brainopia 提交于
-
由 Carlos Antonio da Silva 提交于
Refactor multiparameter attributes assignment implementation.
-
由 Carlos Antonio da Silva 提交于
Cleans up a lot of noise from arguments being passed from one method to another.
-
由 Carlos Antonio da Silva 提交于
This should make it easier to refactor and improve this code, and remove complexity with params going around here and there.
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
-
由 Carlos Antonio da Silva 提交于
Avoid doing a new column lookup for the attribute, since we already have the column to check for the klass.
-
由 Carlos Antonio da Silva 提交于
Move some methods to the top to better organize them, since they're used right at the beginning of the multiparameter assignment method chain.
-
由 Carlos Antonio da Silva 提交于
-
由 Santiago Pastorino 提交于
Replace deprecated `memcache-client` gem with `dalli` in ActiveSupport::Cache::MemCacheStore
-
由 Guillermo Iguaran 提交于
-
由 Guillermo Iguaran 提交于
memcache-client was deprecated in favour of dalli in 2010.
-
由 Aaron Patterson 提交于
Fix merge error when Equality LHS is non-attribute
-
由 Rafael Mendonça França 提交于
Update to activerecord-deprecated_finders on generator
-
由 Miguel Herranz 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Checking respond_to? incurs overhead, and most of the time when assigning attributes it will return true. So just handle the NoMethodError instead.
-
由 Jon Leighton 提交于
any? will check that each item in the array is truthy, as opposed to !empty? which will simply check that the array has length. For an empty array, !empty? still seems to be faster than any?
-
由 Jon Leighton 提交于
Rather than doing it every time an instance is instantiated.
-
由 Jon Leighton 提交于
Those z's were hard to type.
-
由 Jon Leighton 提交于
deep_dup is slow. we only need to dup the values, so just do that directly.
-
由 Aaron Patterson 提交于
Fixes #7374
-
由 Rafael Mendonça França 提交于
Fix occasional microsecond conversion inaccuracy
-
- 17 8月, 2012 1 次提交
-
-
由 Ernie Miller 提交于
This is at best a band-aid for a more proper fix, since it won't truly handle the removal of the previous equality condition of these other nodes. I'm planning to put in some work on ARel toward supporting that goal. Related: rails/arel#130, ernie/squeel#153, ernie/squeel#156
-