Unverified Commit b4807422 by Alex Boyd Committed by GitHub

load :set_annotation_options before running :annotate_routes (#803)

Make `annotate_routes` depend on `set_annotation_options` just as `annotate_models` does. Fixes #761.
parent 19569715
annotate_lib = File.expand_path(File.dirname(File.dirname(__FILE__)))
unless ENV['is_cli']
task :set_annotation_options
task annotate_routes: :set_annotation_options
end
desc "Adds the route map to routes.rb"
task :annotate_routes => :environment do
annotate_lib = File.expand_path(File.dirname(File.dirname(__FILE__)))
require "#{annotate_lib}/annotate/annotate_routes"
options={}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment