Sha256: da433e9fba21ec84ecf62712a18c5e30b61d64e0a7c3e0b59d379fcf72627941

Contents?: true

Size: 679 Bytes

Versions: 28

Compression:

Stored size: 679 Bytes

Contents

begin
  # Try to include the rails initializer. If this isn't in a gem, this will fail.
  require 'initializer'
rescue LoadError => load_error
end

module Refinery
  if defined? Rails::Configuration
    class Configuration < Rails::Configuration
      def default_plugin_paths
        paths = super.push("#{REFINERY_ROOT}/vendor/plugins").uniq
      end
    end
  end
  if defined? Rails::Initializer
    class Initializer < Rails::Initializer
      def self.run(command = :process, configuration = Configuration.new)
        Rails.configuration = configuration
        super
      end
  
      def load_plugins
        Refinery.add_gems
        super
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.12 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.11 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.10 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.9 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.8 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.7 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.6 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.5 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.4 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.3 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.2 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5.1 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.5 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.4.5 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.4.4 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.4.3 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.4.2 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.4.1 vendor/plugins/refinery/lib/refinery/initializer.rb
refinerycms-0.9.4 vendor/plugins/refinery/lib/refinery/initializer.rb