Changeset 4

Show
Ignore:
Timestamp:
08/06/06 17:18:53 (2 years ago)
Author:
jcm
Message:

#3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/better_nested_set.rb

    r2 r4  
    7272          if options[:scope].is_a?(Symbol)  
    7373            if options[:scope].to_s !~ /_id$/ 
    74               options[:scope] = "#{option[:scope]}_id".intern  
     74              options[:scope] = "#{options[:scope]}_id".intern  
    7575            end           
    7676            options[:scope] = %(#{options[:scope].to_s}.nil? ? "#{options[:scope].to_s} IS NULL" : "#{options[:scope].to_s} = \#{#{options[:scope].to_s}}")