- 25 8月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 16 6月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc.
-
- 30 3月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 28 3月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Aaron Patterson 提交于
-
- 10 2月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 09 2月, 2012 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 08 2月, 2012 5 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
copy the columns hash to the active record instances, typecast using columns looked up on the instance
-
- 26 1月, 2012 2 次提交
-
-
由 Aaron Patterson 提交于
another value has been specified).
-
由 Aaron Patterson 提交于
-
- 21 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
This reverts commit be7d2248.
-
- 20 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
too.
-
- 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 12月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 23 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 14 12月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 09 12月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 02 12月, 2011 9 次提交
-
-
由 Jon Leighton 提交于
This reverts commit f6b50463. Fear not, the roflscale will return when I have a bit more time and figure out a better way to do it. (In particular, a way that doesn't break the build.)
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Don't prefix the name with attribute_. Avoids a string allocation on read_attribute, which is a bit faster.
-
由 Jon Leighton 提交于
This means we never have to rely on define_method (which is slower and uses more memory), even when we have attributes containing characters that are not allowed in standard method names. (I am mainly changing this because the duplication annoys me, though.)
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Also make it actually work. It slows down all read_attribute accesses to map 'id' to whatever the PK actually is, inside read_attribute. So instead make sure the necessary methods are defined and that they redirect wherever they need to go.
-
由 Jon Leighton 提交于
This is good because it reduces duplication.
-
由 Jon Leighton 提交于
This makes me happy!
-
由 Jon Leighton 提交于
Define singleton methods on the attributes module instead. This reduces method pollution on the actual model classes. It also seems to make something faster, I am unsure why! O_o
-
- 01 12月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-