Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don’t require already required modules #17071

Merged

Conversation

claudiob
Copy link
Member

abstract_unit.rb requires action_controller which already includes the following lines of code:

require 'abstract_controller'
require 'action_dispatch'

abstract_unit.rb requires `action_controller` which [already includes the following lines of code](https://github.com/rails/rails/blob/64fcdce1d3a6a8768ab17f3be144270456814f82/actionpack/lib/action_controller.rb#L2L3):

```ruby
require 'abstract_controller'
require 'action_dispatch'
```
@claudiob
Copy link
Member Author

On a side note… the reason why I stumbled upon this is because I couldn't find any documentation about what is the "correct and complete" way to use ActionView in a third-party app.

If I only require action_view and action_dispatch, some methods fail… so I assume that requiring the full action_controller is (as of today) still a requirement in order to use ActionView, right?

rafaelfranca added a commit that referenced this pull request Sep 26, 2014
…-twice

Don’t require already required modules
@rafaelfranca rafaelfranca merged commit 5ae8617 into rails:master Sep 26, 2014
@rafaelfranca
Copy link
Member

Right

@claudiob claudiob deleted the don-t-require-action-dispatch-twice branch September 26, 2014 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants