1. 07 3月, 2012 1 次提交
  2. 15 2月, 2012 1 次提交
    • F
      Fix sanitize_for_mass_assigment when role is nil · d204918f
      Fabio Yamate 提交于
      There is an example in Rails documentation that suggests implementing
      assign_attributes method for ActiveModel interface, that by default
      sends option role with nil. Since mass_assignment_authorizer never
      is called without args, we can move the default value internally.
      d204918f
  3. 05 1月, 2012 1 次提交
  4. 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
  5. 23 12月, 2011 1 次提交
  6. 22 12月, 2011 2 次提交
  7. 24 6月, 2011 2 次提交
  8. 23 6月, 2011 1 次提交
  9. 01 6月, 2011 2 次提交
  10. 31 5月, 2011 1 次提交
  11. 30 5月, 2011 1 次提交
  12. 26 5月, 2011 1 次提交
  13. 08 5月, 2011 1 次提交
  14. 24 4月, 2011 2 次提交
  15. 07 3月, 2011 1 次提交
  16. 16 1月, 2011 1 次提交
  17. 09 7月, 2010 4 次提交