Changeset 11
- Timestamp:
- 09/11/06 15:22:39 (2 years ago)
- Files:
-
- trunk/lib/better_nested_set_helper.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/better_nested_set_helper.rb
r10 r11 43 43 # * +&block+ - a block {Â |item, current?| ... item.name } 44 44 # 45 def nested_set_full_outline(item, options= nil)45 def nested_set_full_outline(item, options={}) 46 46 return if item.nil? 47 47 raise 'Not a nested set model !' if !item.respond_to? :acts_as_nested_set_options … … 50 50 :text_column => options[:text_column] || item.acts_as_nested_set_options[:text_column], 51 51 :action => options[:action] || :show, 52 :controller => options[:controller] || item.class. underscore,52 :controller => options[:controller] || item.class.to_s.underscore, 53 53 :separator => options[:separator] || ' > ' } 54 54 … … 64 64 s + yield(item) 65 65 else 66 s + h(item[ :text_column])66 s + h(item[options[:text_column]]) 67 67 end 68 68 end
