rapid7/metasploit-framework — pull request #3615 by limhoff-r7 (2014-08-05 01:16:41+00:00)
Title: require 'action_view/railtie' for pro compatibility

[MSP-10848](https://jira.tor.rapid7.com/secure/RapidBoard.jspa?rapidView=84&view=detail&selectedIssue=MSP-10848)

Other railties, like jquery-rails, need 'action_view/railtie', but don't
require it themselves, so require it explicitly in
`config/application.rb` to prevent msfconsole boot errors.

# Verification Steps

## msfconsole

### With pro's gems

- [ ] `rvm use ruby-1.9.3@metasploit-pro` (or w/e you call your pro gemset)
- [ ] `export BUNDLE_GEMFILE=${pro}/GEMFILE` (`${pro}` is the path to your pro repository)
- [ ] `msfconsole`
- [ ] VERIFY boot without backtraces
- [ ] `irb`
- [ ] VERIFY `Rails.application.config.action_view` is defined
- [ ] VERIFY jquery-rails was loaded `$LOADED_FEATURES.select { |p| p.ends_with? 'jquery/rails/railtie.rb' }`
- [ ] `exit`
- [ ] `exit`
- [ ] `unset BUNDLE_GEMFILE`

### With framework's gems

- [ ] `rvm use ruby-1.9.3@metasploit-framework`
- [ ] `msfconsole`
- [ ] VERIFY boot without backtraces
- [ ] `irb`
- [ ] VERIFY `Rails.application.config.action_view` is defined
- [ ] VERIFY jquery-rails was not loaded `$LOADED_FEATURES.select { |p| p.ends_with? 'jquery/rails/railtie.rb' }.empty?`
- [ ] `exit`
- [ ] `exit`

## Specs
- [ ] `rake spec`
- [ ] VERIFY no failures