Repository URL to install this package:
|
Version:
0.5.1 ▾
|
module Neoteric
module Events
module Category
module ClassMethods
def relate
has_many :categorizations
has_many :events, :through => :categorizations, :as => :category
end
end
def self.included(base)
base.table_name = 'categories'
base.extend(ClassMethods).relate
end
end
end
end