Skip to content

Commit

Permalink
Run rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz-jakubiak committed Jul 4, 2021
1 parent ee95603 commit 73e6bb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ jobs:
os: [ubuntu-latest]
ruby: [2.5, 2.6, 2.7]
runs-on: ${{ matrix.os }}

services:
mongodb:
image: mongo
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
Expand Down
4 changes: 1 addition & 3 deletions lib/activeadmin-mongoid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@
# and thereby pushing ActiveAdmin::Generators::InstallGenerator to use our empty create_migrations method.

Rails::Generators::NamedBase.class_eval do

def create_migrations
end

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

klass.class_eval do
klass.class_eval do
def self.method_added(method_name)
super
remove_method method_name if method_name == :create_migrations
Expand All @@ -26,4 +25,3 @@ def self.method_added(method_name)
end
end
end

0 comments on commit 73e6bb3

Please sign in to comment.