Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 627 Bytes
require "request_store"
#$LOAD_PATH.unshift(File.dirname(__FILE__))
require "acts_as_tenant/version"
require "acts_as_tenant/errors"
require "acts_as_tenant/configuration"
require "acts_as_tenant/controller_extensions"
require "acts_as_tenant/model_extensions"
#$LOAD_PATH.shift
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send(:include, ActsAsTenant::ModelExtensions)
end
if defined?(ActionController::Base)
ActionController::Base.extend ActsAsTenant::ControllerExtensions
end
if defined?(ActionController::API)
ActionController::API.extend ActsAsTenant::ControllerExtensions
end
module ActsAsTenant
end