Skip to content

Commit 7d56cd6

Browse files
committed
Fix rake tasks executed twice
Tasks under lib/tasks are loaded by default, explicitly loading them causes duplication
1 parent d370a2a commit 7d56cd6

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

lib/rails_admin/engine.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ class Engine < Rails::Engine
4242
end
4343
end
4444

45-
rake_tasks do
46-
Dir[File.join(File.dirname(__FILE__), '../tasks/*.rake')].each { |f| load f }
47-
end
48-
4945
# Check for required middlewares, users may forget to use them in Rails API mode
5046
config.after_initialize do |app|
5147
has_session_store = app.config.middleware.to_a.any? do |m|

0 commit comments

Comments
 (0)