lib/lokalise_rails/railtie.rb in lokalise_rails-0.0.2 vs lib/lokalise_rails/railtie.rb in lokalise_rails-0.0.2.1
- old
+ new
@@ -1,11 +1,12 @@
# frozen_string_literal: true
class LokaliseRails
class Railtie < Rails::Railtie
rake_tasks do
+ puts Dir[File.join(File.dirname(__FILE__), '..', 'tasks', '**/*.rake')]
Dir[
File.join(File.dirname(__FILE__), '..', 'tasks', '**/*.rake')
- ].each { |rake| load rake }
+ ].each { |rake| puts(File.file?(rake)) ; load(rake) }
end
end
end