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