Skip to content

Commit

Permalink
Update app template to include all app rake tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb3 committed Feb 13, 2025
1 parent 83a59f6 commit 3c2c4fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rage/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Rage::Tasks
class << self
def init
load_db_tasks if defined?(StandaloneMigrations)
load_app_tasks
end

private
Expand All @@ -29,5 +30,9 @@ def configuration_file

StandaloneMigrations::Tasks.load_tasks
end

def load_app_tasks
Dir[Rage.root.join("lib/tasks/**/*.rake")].each{|file| load file }
end
end
end

0 comments on commit 3c2c4fc

Please sign in to comment.