1. 20 10月, 2012 1 次提交
    • J
      Get rid of the ActiveRecord::Model::DeprecationProxy thing. · 83846838
      Jon Leighton 提交于
      I think it's going to be too much pain to try to transition the
      :active_record load hook from executing against Base to executing
      against Model.
      
      For example, after Model is included in Base, and modules included in
      Model will no longer get added to the ancestors of Base.
      
      So plugins which wish to be compatible with both Model and Base should
      use the :active_record_model load hook which executes *before* Base gets
      loaded.
      
      In general, ActiveRecord::Model is an advanced feature at the moment and
      probably most people will continue to inherit from ActiveRecord::Base
      for the time being.
      83846838
  2. 12 10月, 2012 1 次提交
    • J
      Revert "Key the attributes hash with symbols" · 9e5f7cc6
      Jon Leighton 提交于
      This reverts commit 86c3dfbd.
      
      Conflicts:
      	activerecord/lib/active_record/attribute_methods/read.rb
      
      Reason: whilst this increased performance, it also presents a DoS risk
      via memory exhaustion if users were allowing user input to dictate the
      arguments of read/write_attribute. I will investigate alternative ways
      to cut down on string allocations here.
      9e5f7cc6
  3. 27 9月, 2012 1 次提交
  4. 31 8月, 2012 1 次提交
    • J
      Key the attributes hash with symbols · 86c3dfbd
      Jon Leighton 提交于
      This is a performance/GC optimisation.
      
      In theory, this could be optimised by the implementation (last time I
      checked, this would have no effect on JRuby). But in practise, this make
      attribute access faster.
      86c3dfbd
  5. 21 8月, 2012 1 次提交
  6. 03 8月, 2012 2 次提交
  7. 16 6月, 2012 1 次提交
  8. 04 6月, 2012 1 次提交
  9. 28 2月, 2012 1 次提交
  10. 10 2月, 2012 1 次提交
  11. 08 2月, 2012 3 次提交
  12. 29 12月, 2011 1 次提交
    • J
      Support configuration on ActiveRecord::Model. · 93c1f11c
      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.
      93c1f11c
  13. 24 12月, 2011 1 次提交
  14. 04 12月, 2011 1 次提交
    • J
      Fix #3837. · 9c172b29
      Jon Leighton 提交于
      We also need to time zone convert time zone aware attributes when
      accessed via read_attribute, not only when via direct access.
      9c172b29
  15. 02 12月, 2011 3 次提交
  16. 13 4月, 2011 1 次提交
    • P
      Remove `#among?` from Active Support · 733bfa63
      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?`.
      733bfa63
  17. 12 4月, 2011 1 次提交
  18. 11 4月, 2011 1 次提交
  19. 24 3月, 2011 1 次提交
  20. 07 2月, 2011 1 次提交
  21. 01 2月, 2011 1 次提交
  22. 21 11月, 2010 1 次提交
  23. 10 9月, 2010 1 次提交
  24. 14 8月, 2010 2 次提交
  25. 03 8月, 2010 1 次提交
  26. 10 4月, 2010 1 次提交
  27. 22 1月, 2010 1 次提交
    • P
      Revert "Refactoring attributes/types" [#3348 state:open] · 6d30002a
      Pratik Naik 提交于
      This reverts commit f936a1f1.
      
      Conflicts:
      
      	activerecord/lib/active_record.rb
      	activerecord/lib/active_record/base.rb
      
      Revert "Fixed: #without_typecast should only disable typecasting on the duplicated attributes" [#3387 state:open]
      
      This reverts commit 28319964.
      
      Reason :
      
        It's not generating attribute methods properly, making object.column 5x slower.
      6d30002a
  28. 18 10月, 2009 1 次提交
  29. 05 8月, 2009 2 次提交
  30. 03 8月, 2009 1 次提交
  31. 31 7月, 2009 2 次提交