1. 21 10月, 2012 1 次提交
  2. 29 9月, 2012 1 次提交
    • J
      Support for partial inserts. · 144e8691
      Jon Leighton 提交于
      When inserting new records, only the fields which have been changed
      from the defaults will actually be included in the INSERT statement.
      The other fields will be populated by the database.
      
      This is more efficient, and also means that it will be safe to
      remove database columns without getting subsequent errors in running
      app processes (so long as the code in those processes doesn't
      contain any references to the removed column).
      144e8691
  3. 03 8月, 2012 1 次提交
  4. 16 6月, 2012 1 次提交
  5. 09 6月, 2012 2 次提交
  6. 28 3月, 2012 1 次提交
  7. 07 3月, 2012 2 次提交
  8. 06 3月, 2012 1 次提交
  9. 12 2月, 2012 1 次提交
  10. 07 2月, 2012 1 次提交
  11. 21 1月, 2012 1 次提交
  12. 14 1月, 2012 1 次提交
  13. 11 1月, 2012 1 次提交
  14. 29 12月, 2011 1 次提交
  15. 24 12月, 2011 4 次提交
  16. 22 12月, 2011 1 次提交
  17. 16 12月, 2011 2 次提交
  18. 14 12月, 2011 1 次提交
  19. 02 12月, 2011 2 次提交
  20. 28 11月, 2011 1 次提交
  21. 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
  22. 14 9月, 2011 2 次提交
  23. 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
  24. 01 7月, 2011 1 次提交
  25. 02 3月, 2011 1 次提交
  26. 19 2月, 2011 3 次提交
  27. 03 12月, 2010 1 次提交