Sha256: e332e2e6d313878c73c19bb40684041dfd113e1733265b90589f75a8be074a4a
Contents?: true
Size: 1.01 KB
Versions: 7
Compression:
Stored size: 1.01 KB
Contents
# @api public module ::RailsConnector PLATFORM_CLOUD = :cloud PLATFORM_FIONA = :fiona # return either <tt>:fiona</tt> or <tt>:cloud</tt> depending on the app's configuration. # @return [Symbol] def self.platform PLATFORM_FIONA end def self.platform_cloud? false end def self.platform_fiona? true end end require "rails_connector/core_extensions" require "rails_connector/rack_middlewares" require "rails_connector/errors" require "rails_connector/fiona_datetime" ActiveRecord::Type.register(:fiona_datetime, ::FionaDateTime) # @api public module RailsConnector def self.autoload_all_sources source_files = Dir.glob(File.expand_path("rails_connector/*.rb", __dir__)).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/fiona_engine" if defined?(Rails)
Version data entries
7 entries across 7 versions & 1 rubygems