Sha256: 999b0178f2f049c413e595c8ddcdd92cc1a09dd70eee7b333d82e6436a6dc291

Contents?: true

Size: 924 Bytes

Versions: 2

Compression:

Stored size: 924 Bytes

Contents

require 'pathname'
# pick the refinery root path
rails_root = (defined?(Rails.root) ? Rails.root : Pathname.new(RAILS_ROOT)).cleanpath
if (non_gem_path = rails_root.join("vendor", "plugins", "refinery", "lib", "refinery.rb")).exist?
  require non_gem_path.realpath.to_s
else
  require 'rubygems'
  version = if defined? REFINERY_GEM_VERSION
    REFINERY_GEM_VERSION
  elsif ENV.include?("REFINERY_GEM_VERSION")
    ENV["REFINERY_GEM_VERSION"]
  else
    $1 if rails_root.join("config", "application.rb").read =~ /^[^#]*REFINERY_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
  end

  if version
    gem 'refinerycms', version
  else
    gem 'refinerycms'
  end

  require 'refinery_initializer'
end

# Set to true in your environment specific file (e.g. production.rb) to use Amazon's Simple
# Storage Service instead of the default file system for resources and images
USE_S3_BACKEND = false unless defined?(USE_S3_BACKEND)

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 config/preinitializer.rb
refinerycms-0.9.6.14 config/preinitializer.rb