Sha256: 2f1d3421e75edd3740065f067b9ad81c8d6d3eca1e29f6061315b6bdc7571123
Contents?: true
Size: 906 Bytes
Versions: 1
Compression:
Stored size: 906 Bytes
Contents
require 'rails' require 'active_support' require 'mongoid' module Transit autoload :Package, 'transit/package' autoload :Context, 'transit/context' module Helpers autoload :ControllerHelpers, 'transit/helpers/controller_helpers' autoload :ModelHelpers, 'transit/helpers/model_helpers' end module Errors autoload :InvalidContext, 'transit/errors/invalid_context' end DESCRIPTIONS = {} CONTROLLERS = [] def self.add_controller(klass) CONTROLLERS << klass.to_s.classify.pluralize end def self.contexts Transit::Context.subclasses.map(&:to_s).uniq end def self.track(klass, template) DESCRIPTIONS[template] ||= [] DESCRIPTIONS[template] |= [klass.to_s] end def self.lookup(template) DESCRIPTIONS[template] ||= [] end end require 'transit/package' require 'transit/rails/engine' require 'transit/rails/routing'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
transit-0.0.1 | lib/transit.rb |