class Railtie < Rails::Railtie railtie_name :nxt_error_registry rake_tasks do path = File.expand_path(__dir__) Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f } end end