Changeset 4
- Timestamp:
- 08/06/06 17:18:53 (2 years ago)
- Files:
-
- trunk/lib/better_nested_set.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/better_nested_set.rb
r2 r4 72 72 if options[:scope].is_a?(Symbol) 73 73 if options[:scope].to_s !~ /_id$/ 74 options[:scope] = "#{option [:scope]}_id".intern74 options[:scope] = "#{options[:scope]}_id".intern 75 75 end 76 76 options[:scope] = %(#{options[:scope].to_s}.nil? ? "#{options[:scope].to_s} IS NULL" : "#{options[:scope].to_s} = \#{#{options[:scope].to_s}}")
