Sha256: c6f78d11fc243a3a79d86d024d66c4a1f98dc1893b2fc1a439f67c9212d4a0a5
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
require "enjoy/goto/version" require "enjoy/goto/routes" require 'enjoy_cms' require 'mongoid' require 'mongoid_userstamp' require 'enjoy/goto/configuration' require 'enjoy/goto/engine' require "enjoy/goto/middleware" module Enjoy module Goto class << self def orm :mongoid end def mongoid? Enjoy::Goto.orm == :mongoid end def active_record? Enjoy::Goto.orm == :active_record end def model_namespace "Enjoy::Goto::Models::#{Enjoy::Goto.orm.to_s.camelize}" end def orm_specific(name) "#{model_namespace}::#{name}".constantize end end autoload :Admin, 'enjoy/goto/admin' module Admin autoload :Transfer, 'enjoy/goto/admin/transfer' end module Models autoload :Transfer, 'enjoy/goto/models/transfer' module Mongoid autoload :Transfer, 'enjoy/goto/models/mongoid/transfer' end end module Controllers autoload :Transfers, 'enjoy/goto/controllers/transfers' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms_goto-0.3.7 | lib/enjoy_cms_goto.rb |
enjoy_cms_goto-0.3.6 | lib/enjoy_cms_goto.rb |
enjoy_cms_goto-0.3.5 | lib/enjoy_cms_goto.rb |