class TestNestedAttributesLimitSymbol

Public Instance Methods

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

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