Skip to content

Commit b769b41

Browse files
committed
Merge pull request rapid7#3615 from limhoff-r7/bug/MSP-10848/nightly-msfconsole
require 'action_view/railtie' for pro compatibility
2 parents ec5c1c5 + d56dd31 commit b769b41

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PATH
22
remote: .
33
specs:
44
metasploit-framework (4.10.0.pre.dev)
5+
actionpack (< 4.0.0)
56
activesupport (>= 3.0.0, < 4.0.0)
67
bcrypt
78
json

config/application.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
)
1515
)
1616

17+
#
18+
# Railties
19+
#
20+
21+
# For compatibility with jquery-rails (and other engines that need action_view) in pro
22+
require 'action_view/railtie'
23+
1724
#
1825
# Project
1926
#

metasploit-framework.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Gem::Specification.new do |spec|
5151

5252
# Need 3+ for ActiveSupport::Concern
5353
spec.add_runtime_dependency 'activesupport', '>= 3.0.0', rails_version_constraint
54+
# Needed for config.action_view for view plugin compatibility for Pro
55+
spec.add_runtime_dependency 'actionpack', rails_version_constraint
5456
# Needed for some admin modules (cfme_manageiq_evm_pass_reset.rb)
5557
spec.add_runtime_dependency 'bcrypt'
5658
# Needed for some admin modules (scrutinizer_add_user.rb)

0 commit comments

Comments
 (0)