File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 8
8
os : [ubuntu-latest]
9
9
ruby : [2.5, 2.6, 2.7]
10
10
runs-on : ${{ matrix.os }}
11
+
12
+ services :
13
+ mongodb :
14
+ image : mongo
15
+ ports :
16
+ - 27017:27017
17
+
11
18
steps :
12
19
- uses : actions/checkout@v2
13
20
- uses : ruby/setup-ruby@v1
Original file line number Diff line number Diff line change 9
9
# and thereby pushing ActiveAdmin::Generators::InstallGenerator to use our empty create_migrations method.
10
10
11
11
Rails ::Generators ::NamedBase . class_eval do
12
-
13
12
def create_migrations
14
13
end
15
14
16
15
def self . inherited ( klass )
17
16
super
18
17
if klass . name == "ActiveAdmin::Generators::InstallGenerator"
19
18
20
- klass . class_eval do
19
+ klass . class_eval do
21
20
def self . method_added ( method_name )
22
21
super
23
22
remove_method method_name if method_name == :create_migrations
@@ -26,4 +25,3 @@ def self.method_added(method_name)
26
25
end
27
26
end
28
27
end
29
-
You can’t perform that action at this time.
0 commit comments