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