1. 03 8月, 2012 1 次提交
  2. 16 6月, 2012 1 次提交
  3. 09 6月, 2012 2 次提交
  4. 28 3月, 2012 1 次提交
  5. 07 3月, 2012 2 次提交
  6. 06 3月, 2012 1 次提交
  7. 12 2月, 2012 1 次提交
  8. 07 2月, 2012 1 次提交
  9. 21 1月, 2012 1 次提交
  10. 14 1月, 2012 1 次提交
  11. 11 1月, 2012 1 次提交
  12. 29 12月, 2011 1 次提交
  13. 24 12月, 2011 4 次提交
  14. 22 12月, 2011 1 次提交
  15. 16 12月, 2011 2 次提交
  16. 14 12月, 2011 1 次提交
  17. 02 12月, 2011 2 次提交
  18. 28 11月, 2011 1 次提交
  19. 16 11月, 2011 1 次提交
    • J
      association methods are now generated in modules · 7cba6a37
      Josh Susser 提交于
      Instead of generating association methods directly in the model
      class, they are generated in an anonymous module which
      is then included in the model class. There is one such module
      for each association. The only subtlety is that the
      generated_attributes_methods module (from ActiveModel) must
      be forced to be included before association methods are created
      so that attribute methods will not shadow association methods.
      7cba6a37
  20. 14 9月, 2011 2 次提交
  21. 13 9月, 2011 4 次提交
    • J
      Deprecate using method_missing for attributes that are columns. · 1a421cec
      Jon Leighton 提交于
      This shouldn't ever happen unless people are doing something
      particularly weird, but adding a deprecation in case there are bugs not
      caught by our tests.
      1a421cec
    • J
      Let Ruby deal with method visibility. · ac687ed6
      Jon Leighton 提交于
      Check respond_to_without_attributes? in method_missing. If there is any
      method that responds (even private), let super handle it and raise
      NoMethodError if necessary.
      ac687ed6
    • J
      Always generate attribute methods on the base class. · eecfa84a
      Jon Leighton 提交于
      This fixes a situation I encountered where a subclass would cache the
      name of a generated attribute method in @_defined_class_methods. Then,
      when the superclass has it's attribute methods undefined, the subclass
      would always have to dispatch through method_missing, because the
      presence of the attribute in @_defined_class_methods would mean that it
      is never generated again, even if undefine_attribute_methods is called
      on the subclass.
      
      There various other confusing edge cases like this. STI classes share
      columns, so let's just keep all the attribute method generation state
      isolated to the base class.
      eecfa84a
    • J
      Fix warnings. · 3386a089
      Jon Leighton 提交于
      Make sure we don't redefine an already-defined attribute method.
      3386a089
  22. 01 7月, 2011 1 次提交
  23. 02 3月, 2011 1 次提交
  24. 19 2月, 2011 3 次提交
  25. 03 12月, 2010 1 次提交
  26. 19 10月, 2010 1 次提交
  27. 10 9月, 2010 1 次提交