Sha256: f9bd2d0a24658603904eac747e381943a4b16ac04d1fb0daf50083922cf05e0c

Contents?: true

Size: 635 Bytes

Versions: 14

Compression:

Stored size: 635 Bytes

Contents

# pick the refinery root path
if File.exist?("#{RAILS_ROOT}/lib/refinery_initializer.rb")
  require "#{RAILS_ROOT}/lib/refinery_initializer.rb"
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 File.read("#{RAILS_ROOT}/config/environment.rb") =~ /^[^#]*REFINERY_GEM_VERSION\s*=\s*["']([!~<>=]*\s*[\d.]+)["']/
  end
  
  if version
    gem 'refinerycms', version
  else
    gem 'refinerycms'
  end
  
  require 'refinery_initializer'
end


REFINERY_ROOT = RAILS_ROOT unless defined? REFINERY_ROOT

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 config/preinitializer.rb
refinerycms-0.9.5.12 config/preinitializer.rb
refinerycms-0.9.5.11 config/preinitializer.rb
refinerycms-0.9.5.10 config/preinitializer.rb
refinerycms-0.9.5.9 config/preinitializer.rb
refinerycms-0.9.5.8 config/preinitializer.rb
refinerycms-0.9.5.7 config/preinitializer.rb
refinerycms-0.9.5.6 config/preinitializer.rb
refinerycms-0.9.5.5 config/preinitializer.rb
refinerycms-0.9.5.4 config/preinitializer.rb
refinerycms-0.9.5.3 config/preinitializer.rb
refinerycms-0.9.5.2 config/preinitializer.rb
refinerycms-0.9.5.1 config/preinitializer.rb
refinerycms-0.9.5 config/preinitializer.rb