- 20 2月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 02 2月, 2015 1 次提交
-
-
由 eileencodes 提交于
Fixes #17621. This 5 year old (or older) issue causes validations to fire when a parent record has `validate: false` option and a child record is saved. It's not the responsibility of the model to validate an associated object unless the object was created or modified by the parent. Clean up tests related to validations `assert_nothing_raised` is not benefiting us in these tests Corrected spelling of "respects" It's better to use `assert_not_operator` over `assert !r.valid`
-
- 03 1月, 2015 1 次提交
-
-
由 claudiob 提交于
Also prevents the word "Model" from linking to the documentation of ActiveModel::Model because that's not intended. [ci skip]
-
- 28 7月, 2014 1 次提交
-
-
由 Chun-wei Kuo 提交于
We have to specify the `:title` option to really use the `TitleValidator` defined above.
-
- 10 6月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 14 12月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 12 12月, 2013 1 次提交
-
-
由 Aayush khandelwal 提交于
-
- 03 12月, 2013 1 次提交
-
-
由 Lauro Caetano 提交于
-
- 23 5月, 2013 1 次提交
-
-
由 Nick Sutterer 提交于
deprecate Validator#setup (to get rid of a respond_to call). validators do their setup in their constructor now.
-
- 09 2月, 2013 1 次提交
-
-
由 Henrik Nyh 提交于
As discussed with @josevalim on Ruby Rogues Parley.
-
- 09 1月, 2013 1 次提交
-
-
Makes it easier to test its objects.
-
- 22 12月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
We don't need to define a new method in ActiveMode::Errors for each validatior. See https://github.com/rails/rails/commit/d72a07f1d1478db9daed847eadb35bfd840674f6#commitcomment-2325333
-
- 05 12月, 2012 1 次提交
-
-
由 claudiob 提交于
Sometimes, on Mac OS X, programmers accidentally press Option+Space rather than just Space and don’t see the difference. The problem is that Option+Space writes a non-breaking space (0XA0) rather than a normal space (0x20). This commit removes all the non-breaking spaces inadvertently introduced in the comments of the code.
-
- 04 11月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
ArgumentError is better suited than RuntimeError for this.
-
- 23 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 21 10月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 06 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
Selecting which key extensions to include in active_support/rails made apparent the systematic usage of Object#in? in the code base. After some discussion in https://github.com/rails/rails/commit/5ea6b0df9a36d033f21b52049426257a4637028d we decided to remove it and use plain Ruby, which seems enough for this particular idiom. In this commit the refactor has been made case by case. Sometimes include? is the natural alternative, others a simple || is the way you actually spell the condition in your head, others a case statement seems more appropriate. I have chosen the one I liked the most in each case.
-
- 03 8月, 2012 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
- 30 7月, 2012 2 次提交
-
-
由 Francesco Rodriguez 提交于
-
由 Francesco Rodriguez 提交于
-
- 06 7月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 06 1月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 26 10月, 2011 1 次提交
-
-
由 bradrobertson 提交于
-
- 11 10月, 2011 1 次提交
-
-
由 Evgeniy Dolzhenko 提交于
-
- 13 4月, 2011 1 次提交
-
-
由 Prem Sichanugrist 提交于
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
-
- 12 4月, 2011 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 11 4月, 2011 1 次提交
-
-
由 Prem Sichanugrist 提交于
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
-
- 12 3月, 2011 1 次提交
-
-
由 Mike Gehard 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 08 3月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 07 3月, 2011 1 次提交
-
-
由 Paco Guzman 提交于
-
- 16 9月, 2010 1 次提交
-
-
由 Alexey Mahotkin 提交于
-
- 03 9月, 2010 1 次提交
-
-
由 José Valim 提交于
Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b3.
-
- 02 9月, 2010 1 次提交
-
-
由 Łukasz Strzałkowski 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 14 8月, 2010 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 03 8月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 30 7月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
-