Skip to content

Commit

Permalink
Use require instead of autoload for bundler/plugin/api
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 16, 2016
1 parent 4d885bc commit 4c32972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# frozen_string_literal: true
require "bundler/plugin/api"

module Bundler
module Plugin
autoload :API, "bundler/plugin/api"
autoload :DSL, "bundler/plugin/dsl"
autoload :Index, "bundler/plugin/index"
autoload :Installer, "bundler/plugin/installer"
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/plugin/api.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require "bundler/plugin/api/source"

module Bundler
# This is the interfacing class represents the API that we intend to provide
Expand All @@ -23,7 +24,6 @@ module Bundler
# and hooks).
module Plugin
class API
autoload :Source, "bundler/plugin/api/source"
# The plugins should declare that they handle a command through this helper.
#
# @param [String] command being handled by them
Expand Down

0 comments on commit 4c32972

Please sign in to comment.