Sha256: 1af7bcf5a0f1d14aa5ad178321e8ecaa131bb9b5389287987cd1b7a62c243023

Contents?: true

Size: 1.01 KB

Versions: 30

Compression:

Stored size: 1.01 KB

Contents

require 'pathname'
root_directory = Pathname.new(File.expand_path(File.dirname(__FILE__) << "/.."))
rails_root = ((defined?(Rails.root) && Rails.root.realpath.to_s.length > 0) ? Rails.root : Pathname.new(RAILS_ROOT))

if (non_gem_refinery = rails_root.join("vendor", "plugins", "refinery", "lib", "refinery.rb")).exist?
  require non_gem_refinery.realpath.to_s # this won't exist when using a gem.
  Refinery.is_a_gem = false
else
  require root_directory.join("vendor", "plugins", "refinery", "lib", "refinery").realpath.to_s
  Refinery.is_a_gem = true
end

# Now we need to set some things that are used by the rest of the application.
Refinery.root = root_directory.cleanpath
$LOAD_PATH.unshift Refinery.root.join("vendor", "plugins").to_s
$LOAD_PATH.unshift Refinery.root.join("vendor", "plugins", "refinery", "lib").to_s
$LOAD_PATH.uniq!

# We also need the other refinery initializer.
require 'refinery/initializer'

# Pull in attachment_fu patch for windows
require 'refinery/attachment_fu_patch' if RUBY_PLATFORM =~ /mswin/

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
refinerycms-0.9.7.15 lib/refinery_initializer.rb
refinerycms-0.9.7.14 lib/refinery_initializer.rb
refinerycms-0.9.7.13 lib/refinery_initializer.rb
refinerycms-0.9.7.11 lib/refinery_initializer.rb
refinerycms-0.9.7.10 lib/refinery_initializer.rb
refinerycms-0.9.7.9 lib/refinery_initializer.rb
refinerycms-0.9.7.8 lib/refinery_initializer.rb
refinerycms-0.9.7.7 lib/refinery_initializer.rb
refinerycms-0.9.7.6 lib/refinery_initializer.rb
refinerycms-0.9.7.5 lib/refinery_initializer.rb
refinerycms-0.9.7.4 lib/refinery_initializer.rb
refinerycms-0.9.7.3 lib/refinery_initializer.rb
refinerycms-0.9.7.2 lib/refinery_initializer.rb
refinerycms-0.9.7.1 lib/refinery_initializer.rb
refinerycms-0.9.7 lib/refinery_initializer.rb
refinerycms-0.9.6.34 lib/refinery_initializer.rb
refinerycms-0.9.6.33 lib/refinery_initializer.rb
refinerycms-0.9.6.32 lib/refinery_initializer.rb
refinerycms-0.9.6.31 lib/refinery_initializer.rb
refinerycms-0.9.6.30 lib/refinery_initializer.rb