We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1956971 commit b480742Copy full SHA for b480742
lib/tasks/annotate_routes.rake
@@ -1,6 +1,12 @@
1
+annotate_lib = File.expand_path(File.dirname(File.dirname(__FILE__)))
2
+
3
+unless ENV['is_cli']
4
+ task :set_annotation_options
5
+ task annotate_routes: :set_annotation_options
6
+end
7
8
desc "Adds the route map to routes.rb"
9
task :annotate_routes => :environment do
- annotate_lib = File.expand_path(File.dirname(File.dirname(__FILE__)))
10
require "#{annotate_lib}/annotate/annotate_routes"
11
12
options={}
0 commit comments