- 18 10月, 2012 2 次提交
- 03 10月, 2012 4 次提交
-
-
由 Rafael Mendonça França 提交于
Thanks to @jeremy to teach me this one.
-
由 Rafael Mendonça França 提交于
This reverts commit 4e9f53f9, reversing changes made to 6b802cdb. Revert "Don't use tap in this case." This reverts commit 454d820b. Reason: Is not a good idea to add options to this method since we can do the same thing using method composition. Person.validators_on(:name).select { |v| v.kind == :presence } Also it avoids to change the method again to add more options.
-
由 Rafael Mendonça França 提交于
The use of tap in this case is very confusing since we are mutating the return value inside the block
-
由 Prem Sichanugrist 提交于
This will filter out the validators on a particular attribute based on its kind.
-
- 03 8月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 30 7月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 27 6月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
There's no need to create two extra hashes with options.merge(another_hash), with the goal of setting only one value, so lets just set it. Also refactor validates_each to use _merge_attributes, like other validates_* helpers do.
-
- 23 6月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 16 6月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc.
-
由 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.
-
- 16 5月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 14 5月, 2012 1 次提交
-
-
由 Angelo Capilleri 提交于
-
- 26 4月, 2012 3 次提交
-
-
由 Oscar Del Ben 提交于
-
由 Oscar Del Ben 提交于
-
由 Oscar Del Ben 提交于
-
- 08 2月, 2012 1 次提交
-
-
由 prasath 提交于
-
- 06 1月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
The problem: We need to be able to specify configuration in a way that can be inherited to models that include ActiveRecord::Model. So it is no longer sufficient to put 'top level' config on ActiveRecord::Base, but we do want configuration specified on ActiveRecord::Base and descendants to continue to work. So we need something like class_attribute that can be defined on a module but that is inherited when ActiveRecord::Model is included. The solution: added ActiveModel::Configuration module which provides a config_attribute macro. It's a bit specific hence I am not putting this in Active Support or making it a 'public API' at present.
-
- 24 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 29 4月, 2011 1 次提交
-
-
由 Aditya Sanghi 提交于
-
- 08 3月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 22 2月, 2011 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Peer Allan 提交于
-
- 21 2月, 2011 1 次提交
-
-
由 Xavier Noria 提交于
-
- 19 2月, 2011 1 次提交
-
-
由 Peer Allan 提交于
-
- 08 2月, 2011 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 06 2月, 2011 1 次提交
-
-
由 Carl Lerche 提交于
-
- 01 2月, 2011 1 次提交
-
-
由 John Firebaugh 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 20 12月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 02 10月, 2010 1 次提交
-
-
由 fastred 提交于
-
- 12 9月, 2010 1 次提交
-
-
由 Mikel Lindsaar 提交于
-
- 14 8月, 2010 3 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Greg Campbell 提交于
[#5311 state: resolved] ActiveModel::Validations uses Hash#except, but does not require it from ActiveSupport. (This wasn't showing up in the tests, because it was required in the helper, and was also required in ActiveModel::Serialization). Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
-
- 13 8月, 2010 1 次提交
-
-
由 Greg Campbell 提交于
[#5311 state: resolved] ActiveModel::Validations uses Hash#except, but does not require it from ActiveSupport. (This wasn't showing up in the tests, because it was required in the helper, and was also required in ActiveModel::Serialization). Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 03 8月, 2010 1 次提交
-
-
由 José Valim 提交于
-