rails/rails — pull request #7449 by Mik-die (2012-08-26 00:11:02+00:00)
Title: Allow to pass Symbol or Proc into :limit option of #accepts_nested_attributes_for

At current moment there is some inconsistency between options +:limit+ and +:reject_if+ - the last can accept symbol that points on instance method, and also procs.

My patch adds these capabilities to +:limit+ option.