Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
neoteric-events / app / models / neoteric / events / category.rb
Size: Mime:
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