1. 04 1月, 2011 13 次提交
  2. 02 1月, 2011 2 次提交
    • P
      Make sure that generator's default banner is showing its namespace · fd1daf9a
      Prem Sichanugrist 提交于
      This will make `rails g rspec:install --help` shows "rails generate rspec:install [options]" and not "rails generate install  [options]"
      fd1daf9a
    • A
      Merge remote branch 'jonleighton/association_fixes' into fuuu · 5c7fd876
      Aaron Patterson 提交于
      * jonleighton/association_fixes:
        Rename AssociationReflection#primary_key_name to foreign_key, since the options key which it relates to is :foreign_key
        Support for :counter_cache on polymorphic belongs_to
        Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to inherit from it
        Specify the STI type condition using SQL IN rather than a whole load of ORs. Required a fix to ActiveRecord::Relation#merge for properly merging create_with_value. This also fixes a situation where the type condition was appearing twice in the resultant SQL query.
        Verify that when has_many associated objects are destroyed via :dependent => :destroy, when the parent is destroyed, the callbacks are run
        Get rid of extra_conditions param from configure_dependency_for_has_many. I can't see a particularly plausible argument for this being used by plugins, and if they really want they can just redefine the callback or whatever. Note also that before my recent commit the extra_conditions param was completely ignored for :dependent => :destroy.
        And owner_quoted_id can go too
        Now we can drop-kick AssociationReflection#dependent_conditions into oblivion.
        Refactor configure_dependency_for_has_many to use AssociationCollection#delete_all. It was necessary to change test_before_destroy in lifecycle_test.rb so that it checks topic.replies.size *before* doing the destroy, as afterwards it will now (correctly) be 0.
      5c7fd876
  3. 01 1月, 2011 11 次提交
  4. 31 12月, 2010 10 次提交
  5. 30 12月, 2010 4 次提交