Sha256: 3bb7fdaeb2d78b40e80981535d00dd3b693ffa07d0298f07988088d788ae9729

Contents?: true

Size: 270 Bytes

Versions: 26

Compression:

Stored size: 270 Bytes

Contents

module Spud::Admin::PostsHelper

	def options_for_parent_category(parent_id = 0)
		if @categories[parent_id]
			return @categories[parent_id].collect{ |c| 
				opts = [c.name, c.id] 
				opts += options_for_parent_category(c.id)
			}
		else
			return []
		end

	end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spud_blog-0.8.12 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.11 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.8 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.7 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.6 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.5 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.4 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.3 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.2 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.1 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.8.0 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.7.5 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.7.4 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.7.2 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.7.0 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.6.3 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.6.0 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.5.1 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.5.0 app/helpers/spud/admin/posts_helper.rb
spud_blog-0.4.0 app/helpers/spud/admin/posts_helper.rb