Sha256: 038ec585ab5ae2daeee81feaa7f9868ec04ab0d3902ce7e5717159084dc6ff3f
Contents?: true
Size: 1.83 KB
Versions: 7
Compression:
Stored size: 1.83 KB
Contents
require "enjoy/catalog/version" require 'money-rails' require 'enjoy_cms_mongoid' require 'rails_admin_sort_embedded' require 'rails_admin_jcrop' require 'enjoy/catalog/configuration' require 'enjoy/catalog/engine' module Enjoy module Catalog class << self def orm :mongoid end def mongoid? Enjoy::Catalog.orm == :mongoid end def active_record? Enjoy::Catalog.orm == :active_record end def model_namespace "Enjoy::Catalog::Models::#{Enjoy::Catalog.orm.to_s.camelize}" end def orm_specific(name) "#{model_namespace}::#{name}".constantize end end autoload :Admin, 'enjoy/catalog/admin' module Admin autoload :Item, 'enjoy/catalog/admin/item' autoload :ItemCategory, 'enjoy/catalog/admin/item_category' autoload :ItemImage, 'enjoy/catalog/admin/item_image' autoload :ItemCategoryImage, 'enjoy/catalog/admin/item_category_image' end module Models autoload :Item, 'enjoy/catalog/models/item' autoload :ItemCategory, 'enjoy/catalog/models/item_category' autoload :ItemImage, 'enjoy/catalog/models/item_image' autoload :ItemCategoryImage, 'enjoy/catalog/models/item_category_image' module Mongoid autoload :Item, 'enjoy/catalog/models/mongoid/item' autoload :ItemCategory, 'enjoy/catalog/models/mongoid/item_category' autoload :ItemImage, 'enjoy/catalog/models/mongoid/item_image' autoload :ItemCategoryImage, 'enjoy/catalog/models/mongoid/item_category_image' end end module Controllers autoload :Items, 'enjoy/catalog/controllers/items' autoload :ItemCategories, 'enjoy/catalog/controllers/item_categories' end end end
Version data entries
7 entries across 7 versions & 1 rubygems