Sha256: 475f55ef5d55a35a0fc427e7354e17b6ded6568b5dee938f76b7cab2ce68c09b

Contents?: true

Size: 440 Bytes

Versions: 1

Compression:

Stored size: 440 Bytes

Contents

require "#{File.dirname(__FILE__)}/../vendor/gems/environment"

class Rails::Boot
  def run
    load_initializer
    extend_environment
    Rails::Initializer.run(:set_load_path)
  end

  def extend_environment
    Rails::Initializer.class_eval do
      old_load = instance_method(:load_environment)
      define_method(:load_environment) do
        Bundler.require_env RAILS_ENV
        old_load.bind(self).call
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beans_rails-0.1.1 templates/config/preinitializer.rb