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 ca1b10b commit ce69663
Showing 1 changed file with 1 addition and 3 deletions.
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 ce69663

Please sign in to comment.