Skip to content

Commit

Permalink
Set env when running DB tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Sep 16, 2024
1 parent 98eb072 commit 60c15b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rage/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ def tasks
end

def method_missing(method_name, *, &)
set_env({})

if respond_to?(method_name)
Rake::Task[method_name].invoke
else
Expand Down

0 comments on commit 60c15b5

Please sign in to comment.