- 15 8月, 2013 11 次提交
-
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
Adding LESS to rake notes
-
由 Josh Crowder 提交于
-
由 José Valim 提交于
Fixing multi-word automatic inverse detection.
-
由 wangjohn 提交于
Currently, ActiveRecord models with multiple words cannot have their inverse associations detected automatically.
-
由 Carlos Antonio da Silva 提交于
Typo Fix[ci skip]
-
由 Rashmi Yadav 提交于
-
由 Yves Senn 提交于
Fix assign ip address with invalid values raise exception
-
由 Paul Nikitochkin 提交于
In order that set attribute should not be bang method
-
由 Yves Senn 提交于
Removed redundant asserts for assigns attribute operation
-
由 Paul Nikitochkin 提交于
-
- 14 8月, 2013 11 次提交
-
-
由 Yves Senn 提交于
-
由 Xavier Noria 提交于
Added SanitizeHelper to rails guide docs [ci skip]
-
由 Yves Senn 提交于
Generate namespaced routes correctly for generators. Fix for #11532
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
added String#to_date documentation to Rails 4 upgrade guide [ci skip]
-
由 Prathamesh Sonpatki 提交于
-
由 Steve Klabnik 提交于
Add description of action in Getting Started Guide [ci skip]
-
由 Steve Klabnik 提交于
Updated outdated initialization guide [ci skip]
-
由 David Heinemeier Hansson 提交于
-
由 AJ Acevedo 提交于
-
由 Paul Nikitochkin 提交于
[ci skip] Closes #11804
-
- 13 8月, 2013 11 次提交
-
-
由 Rafael Mendonça França 提交于
using assert_not instead of refute
-
由 Rajarshi Das 提交于
-
由 José Valim 提交于
Add plural form example for AR I18n section [ci skip]
-
由 Sadjow Leão 提交于
-
由 Xavier Noria 提交于
That is a better name, thanks @jeremy.
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
See the CHANGELONG message in the patch for further details.
-
由 Steve Klabnik 提交于
Refactor Duration#inspect
-
由 David Chelimsky 提交于
In preparing https://github.com/rails/rails/pull/11855, it took me a minute to understand what was going on due to naming (parts refers first to an attr_accessor, then to a local, and is then reassigned), but also because the iterator conditionally builds nulls and then removes them. I refactored to something much more functional-looking that I find easier to read, but you may or may not. If you do, great! Enjoy! If not, oh well, I tried. Can't win 'em all :) Rationale: * no name conflict between local var and attr_accessor * no reassignment of local var * algorithm spelled out in steps * unused items in initial list filtered out early * empty-list case handled early instead of reassigning local var * no duplication of formatting strings ("0 seconds") Benchmarks (after PR #11855 merged): 10000.times do 1.second.inspect end original #inspect 0.350000 0.000000 0.350000 ( 0.354709) 0.330000 0.000000 0.330000 ( 0.331885) 0.330000 0.000000 0.330000 ( 0.334441) refactored #inspect 0.340000 0.000000 0.340000 ( 0.340080) 0.340000 0.010000 0.350000 ( 0.345069) 0.330000 0.000000 0.330000 ( 0.335873) 10000.times do (1.day + 1.month + 2.minutes + 1.day).inspect end original #inspect 0.400000 0.000000 0.400000 ( 0.403027) 0.400000 0.000000 0.400000 ( 0.403781) 0.390000 0.000000 0.390000 ( 0.387596) refactored #inspect 0.400000 0.010000 0.410000 ( 0.399792) 0.400000 0.000000 0.400000 ( 0.404145) 0.400000 0.000000 0.400000 ( 0.403820)
-
由 Rafael Mendonça França 提交于
Use chop instead of singularize in Duration#inspect
-
由 David Chelimsky 提交于
Even though singularize tells a better story, chop is more than 50% faster and is all that is necessary in the case of Duration#inspect, in which all of the candidates for chopping appear in the same method and are all singularized by removing the final 's'. Benchmarks: 10000.times do 1.second.inspect end original #inspect 0.740000 0.000000 0.740000 ( 0.739065) 0.740000 0.000000 0.740000 ( 0.741458) 0.740000 0.010000 0.750000 ( 0.744011) refactored #inspect 0.330000 0.000000 0.330000 ( 0.333390) 0.330000 0.000000 0.330000 ( 0.331013) 0.320000 0.000000 0.320000 ( 0.330103) 10000.times do (1.day + 1.month + 2.minutes + 1.day).inspect end original #inspect 0.790000 0.000000 0.790000 ( 0.794624) 0.770000 0.000000 0.770000 ( 0.774577) 0.770000 0.010000 0.780000 ( 0.771295) refactored #inspect 0.390000 0.000000 0.390000 ( 0.392921) 0.400000 0.000000 0.400000 ( 0.397412) 0.370000 0.000000 0.370000 ( 0.379660)
-
- 12 8月, 2013 7 次提交
-
-
由 Steve Klabnik 提交于
Add events reference link to the text about jquery-ujs [ci skip]
-
由 Sadjow Leão 提交于
-
由 Steve Klabnik 提交于
Added comment to a guide about necessity of `:dependent` option for asso... [ci skip]
-
由 Ilya Vorontsov 提交于
Added comment to a guide about necessity of `:dependent` option for associations with NOT NULL constraint
-
由 Steve Klabnik 提交于
drop extra variable
-
由 Piotr Sarnacki 提交于
-
由 Piotr Sarnacki 提交于
Improve #5476 - "Nested attributes with callbacks bugfix" to use add_to_target and clearer tests
-