Sha256: 645ff09d5a76ac1f29ecf5f7a32fdf7b136cf362c9de7044ca1b99b2174e115f

Contents?: true

Size: 1009 Bytes

Versions: 4

Compression:

Stored size: 1009 Bytes

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/errors"
require "rails_connector/fiona_date_time"
require "rails_connector/rack_middlewares"

# @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

module InfoparkFionaConnector; end

require "rails_connector/engine" if defined?(Rails)
require "rails_connector/fiona_engine" if defined?(Rails)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
infopark_fiona_connector-7.0.1.6.1.6.rc4 lib/infopark_fiona_connector.rb
infopark_fiona_connector-7.0.1.6.1.6.rc3 lib/infopark_fiona_connector.rb
infopark_fiona_connector-7.0.1.6.1.6.rc2 lib/infopark_fiona_connector.rb
infopark_fiona_connector-7.0.1.6.1.6.rc1 lib/infopark_fiona_connector.rb