Skip to content

Commit c62c484

Browse files
r7kamuracyu
authored andcommitted
Remove unnecessary :require option from Gemfile example
`Bundler.require` automatically loads lib/rack/cors.rb even if there is no :require option. This can be verified by the following code: ```rb require "bundler/inline" gemfile do source "https://rubygems.org" gem "rack-cors" end puts defined?(Rack::Cors) ``` ``` $ ruby example.rb constant ``` cf. https://guides.rubygems.org/name-your-gem/
1 parent 30f63a7 commit c62c484

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Install the gem:
1313
Or in your Gemfile:
1414

1515
```ruby
16-
gem 'rack-cors', require: 'rack/cors'
16+
gem 'rack-cors'
1717
```
1818

1919

0 commit comments

Comments
 (0)