Sha256: 6711beb84d9c60569bb799b3385f8f4750821a77e1dedd8c3e1e8ba0fce466dd

Contents?: true

Size: 632 Bytes

Versions: 16

Compression:

Stored size: 632 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

16 entries across 16 versions & 1 rubygems

Version Path
refinerycms-0.9.5.29 config/preinitializer.rb
refinerycms-0.9.5.28 config/preinitializer.rb
refinerycms-0.9.5.27 config/preinitializer.rb
refinerycms-0.9.5.26 config/preinitializer.rb
refinerycms-0.9.5.25 config/preinitializer.rb
refinerycms-0.9.5.24 config/preinitializer.rb
refinerycms-0.9.5.23 config/preinitializer.rb
refinerycms-0.9.5.22 config/preinitializer.rb
refinerycms-0.9.5.21 config/preinitializer.rb
refinerycms-0.9.5.20 config/preinitializer.rb
refinerycms-0.9.5.19 config/preinitializer.rb
refinerycms-0.9.5.18 config/preinitializer.rb
refinerycms-0.9.5.17 config/preinitializer.rb
refinerycms-0.9.5.16 config/preinitializer.rb
refinerycms-0.9.5.15 config/preinitializer.rb
refinerycms-0.9.5.14 config/preinitializer.rb