Sha256: 2d61c8f013650f6510ccda554487b06e214e3da0e28e1157a6254229989ef135
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
require 'pathname' begin require 'vendor/plugins/refinery/lib/refinery' rescue LoadError => load_error # We won't be able to load this if we're in the gem as there is no such thing. end refinery_root = Pathname.new((defined?(Refinery.root) ? Refinery.root.to_s : File.expand_path(File.dirname(__FILE__) << "/.."))) unless refinery_root == (defined?(Rails.root) ? Rails.root : Pathname.new(RAILS_ROOT)) # e.g. only if we're in a gem. $LOAD_PATH.unshift refinery_root.join("vendor", "plugins").to_s $LOAD_PATH.unshift refinery_root.join("vendor", "plugins", "refinery", "lib").to_s require 'refinery' Refinery.root = refinery_root require 'refinery/initializer' end # Pull in attachment_fu patch for windows require 'refinery/attachment_fu_patch' if RUBY_PLATFORM =~ /mswin/
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-0.9.6.12 | lib/refinery_initializer.rb |
refinerycms-0.9.6.11 | lib/refinery_initializer.rb |
refinerycms-0.9.6.10 | lib/refinery_initializer.rb |