Ticket #2 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Setting :scope option in acts_as_nested_set not working

Reported by: adam at inquisitsolutions dot com Assigned to: somebody
Priority: major Milestone: 0.1 with tests
Component: plugin Version: trunk
Keywords: Cc:

Description

If you use the :scope option in an acts_as_nested_set declaration to name a foreign key attribute, you get an error.

Turns out there is a typo on line 94: option[:scope] = "#{options[:scope]}_id".intern

Should be: options[:scope] = "#{options[:scope]}_id".intern

Change History

08/06/06 17:19:46 changed by jcm

  • status changed from new to closed.
  • resolution set to fixed.

Thanks, I included your correction.

10/10/06 13:27:20 changed by jcm

  • keywords deleted.
  • version set to trunk.
  • component changed from component1 to plugin.
  • milestone set to 0.1 with tests.