Skip to content

Commit 73e6bb3

Browse files
Run rubocop
1 parent ee95603 commit 73e6bb3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/tests.yml

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ jobs:
88
os: [ubuntu-latest]
99
ruby: [2.5, 2.6, 2.7]
1010
runs-on: ${{ matrix.os }}
11+
12+
services:
13+
mongodb:
14+
image: mongo
15+
ports:
16+
- 27017:27017
17+
1118
steps:
1219
- uses: actions/checkout@v2
1320
- uses: ruby/setup-ruby@v1

lib/activeadmin-mongoid.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
# and thereby pushing ActiveAdmin::Generators::InstallGenerator to use our empty create_migrations method.
1010

1111
Rails::Generators::NamedBase.class_eval do
12-
1312
def create_migrations
1413
end
1514

1615
def self.inherited(klass)
1716
super
1817
if klass.name == "ActiveAdmin::Generators::InstallGenerator"
1918

20-
klass.class_eval do
19+
klass.class_eval do
2120
def self.method_added(method_name)
2221
super
2322
remove_method method_name if method_name == :create_migrations
@@ -26,4 +25,3 @@ def self.method_added(method_name)
2625
end
2726
end
2827
end
29-

0 commit comments

Comments
 (0)