Sha256: 07c317e7eb75b14f0b7fc7b2e781938a462f1cad1346681880a40159730c5e6f
Contents?: true
Size: 949 Bytes
Versions: 3
Compression:
Stored size: 949 Bytes
Contents
# @api public module ::RailsConnector PLATFORM_CLOUD = :cloud.freeze PLATFORM_FIONA = :fiona.freeze # return either <tt>:fiona</tt> or <tt>:cloud</tt> depending on the app's configuration. # @return [Symbol] def self.platform PLATFORM_CLOUD end def self.platform_cloud? true end def self.platform_fiona? false end end require 'rails_connector/core_extensions' require 'rails_connector/rack_middlewares' require "rails_connector/errors" # @api public module RailsConnector def self.autoload_all_sources source_files = Dir.glob(File.expand_path("../rails_connector/*.rb", __FILE__)).map do |file| File.basename(file) end source_files.each do |file| name = file.gsub(".rb", "") autoload name.camelcase, "rails_connector/#{name}" end end autoload_all_sources end require "rails_connector/engine" if defined?(Rails) require "rails_connector/cloud_engine" if defined?(Rails)
Version data entries
3 entries across 3 versions & 1 rubygems