class TestNestedAttributesLimitNumeric

Public Instance Methods

setup() click to toggle source
# File activerecord/test/cases/nested_attributes_test.rb, line 922
def setup
  Pirate.accepts_nested_attributes_for :parrots, limit: 2

  @pirate = Pirate.create!(catchphrase: "Don' botharrr talkin' like one, savvy?")
end