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 c223ca3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion lib/rage/templates/Rakefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require_relative "config/application"
Rage.load_tasks
Rage.load_tasks

0 comments on commit c223ca3

Please sign in to comment.