1. 19 4月, 2011 1 次提交
  2. 18 4月, 2011 1 次提交
  3. 13 4月, 2011 3 次提交
  4. 17 3月, 2011 1 次提交
  5. 06 3月, 2011 1 次提交
  6. 18 2月, 2011 2 次提交
  7. 14 2月, 2011 1 次提交
  8. 08 2月, 2011 1 次提交
  9. 04 1月, 2011 1 次提交
    • J
      Let AssociationCollection#find use #scoped to do its finding. Note that I am... · 3103296a
      Jon Leighton 提交于
      Let AssociationCollection#find use #scoped to do its finding. Note that I am removing test_polymorphic_has_many_going_through_join_model_with_disabled_include, since this specifies different behaviour for an association than for a regular scope. It seems reasonable to expect scopes and association proxies to behave in roughly the same way rather than having subtle differences.
      3103296a
  10. 23 12月, 2010 1 次提交
  11. 21 12月, 2010 2 次提交
  12. 16 12月, 2010 3 次提交
  13. 31 10月, 2010 1 次提交
  14. 20 10月, 2010 2 次提交
  15. 19 10月, 2010 1 次提交
  16. 10 10月, 2010 1 次提交
  17. 14 8月, 2010 2 次提交
  18. 09 7月, 2010 1 次提交
  19. 15 5月, 2010 1 次提交
  20. 03 4月, 2010 1 次提交
  21. 23 1月, 2010 1 次提交
  22. 19 1月, 2010 1 次提交
  23. 18 1月, 2010 3 次提交
  24. 22 6月, 2009 1 次提交
  25. 26 2月, 2009 1 次提交
  26. 25 1月, 2009 1 次提交
  27. 10 10月, 2008 1 次提交
  28. 05 10月, 2008 1 次提交
  29. 11 9月, 2008 1 次提交
  30. 14 7月, 2008 1 次提交
    • D
      Add :accessible option to Associations for allowing mass assignments using... · e0750d6a
      David Dollar 提交于
      Add :accessible option to Associations for allowing mass assignments using hash. [#474 state:resolved]
      
      Allows nested Hashes (i.e. from nested forms) to hydrate the appropriate
      ActiveRecord models.
      
      class Post < ActiveRecord::Base
        belongs_to :author,   :accessible => true
        has_many   :comments, :accessible => true
      end
      
      post = Post.create({
        :title    => 'Accessible Attributes',
        :author   => { :name => 'David Dollar' },
        :comments => [
          { :body => 'First Post!' },
          { :body => 'Nested Hashes are great!' }
        ]
      })
      
      post.comments << { :body => 'Another Comment' }
      Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
      e0750d6a