Skip to content

Commit ba4891b

Browse files
committed
Restore Rails.groups arguments
MSP-10905 They don't cause a problem.
1 parent f5ff22e commit ba4891b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

config/application.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
require 'rails'
22
require File.expand_path('../boot', __FILE__)
33

4-
Bundler.require(*Rails.groups)
4+
all_environments = [
5+
:development,
6+
:production,
7+
:test
8+
]
9+
10+
Bundler.require(
11+
*Rails.groups(
12+
db: all_environments,
13+
pcap: all_environments
14+
)
15+
)
516

617
#
718
# Project

lib/metasploit/framework/command/base.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ def self.require_environment!
6565
"`rm -rf .bundle` to remove the .bundle/config manually and " \
6666
"then `bundle install`"
6767
end
68-
69-
ENV['RAILS_GROUP'] = 'db,pcap'
7068
end
7169

7270
Rails.application.require_environment!

0 commit comments

Comments
 (0)