lib/planner/categorizable.rb
#
# This allows for a one to many relationship .... from category back to the categorized
#
This allows for a one to many relationship .... from category back to the categorized
This allows for a one to many relationship .... from category back to the categorized
def _categorizable(categorizable_type)
        has_many  categorizable_type.name.demodulize.pluralize.downcase.to_sym, :through => :categories,
                  :source => :categorized,
                  :source_type => categorizable_type.name
      end
def _categorizable ( categorizable_type ) has_many categorizable_type . name . demodulize . pluralize . downcase . to_sym , :through => :categories , :source => :categorized , :source_type => categorizable_type . name end
This allows for a one to many relationship .... from category back to the categorized
This allows for a one to many relationship .... from category back to the categorized
categorizable_type
<not_specific>