We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca1b10b commit ce69663Copy full SHA for ce69663
lib/activeadmin-mongoid.rb
@@ -9,15 +9,14 @@
9
# and thereby pushing ActiveAdmin::Generators::InstallGenerator to use our empty create_migrations method.
10
11
Rails::Generators::NamedBase.class_eval do
12
-
13
def create_migrations
14
end
15
16
def self.inherited(klass)
17
super
18
if klass.name == "ActiveAdmin::Generators::InstallGenerator"
19
20
- klass.class_eval do
+ klass.class_eval do
21
def self.method_added(method_name)
22
23
remove_method method_name if method_name == :create_migrations
@@ -26,4 +25,3 @@ def self.method_added(method_name)
26
25
27
28
29
0 commit comments