Skip to content

Commit

Permalink
gradually moving documentation to new hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
AvnerCohen committed Oct 10, 2012
1 parent 28fc893 commit 4c6f75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activerecord/test/cases/nested_attributes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_has_many_association_updating_a_single_record
end

def test_reject_if_with_blank_nested_attributes_id
# When using a select list to choose an existing 'ship' id, with :include_blank => true
# When using a select list to choose an existing 'ship' id, with include_blank: true
Pirate.accepts_nested_attributes_for :ship, :reject_if => proc {|attributes| attributes[:id].blank? }

pirate = Pirate.new(:catchphrase => "Stop wastin' me time")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def replied_topic
[ "given option that is not reserved", {:format => "jpg"}, {:format => "jpg" }]
# TODO Add :on case, but below doesn't work, because then the validation isn't run for some reason
# even when using .save instead .valid?
# [ "given on condition", {:on => :save}, {}]
# [ "given on condition", {on: :save}, {}]
]

# validates_uniqueness_of w/ mocha
Expand Down

0 comments on commit 4c6f75c

Please sign in to comment.