We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f350a9d commit 2286b49Copy full SHA for 2286b49
lib/tasks/annotate_models.rake
@@ -12,7 +12,7 @@ task annotate_models: :environment do
12
13
options = {is_rake: true}
14
ENV['position'] = options[:position] = Annotate::Helpers.fallback(ENV['position'], 'before')
15
- options[:active_admin] = ENV.fetch('active_admin', 'false')
+ options[:active_admin] = Annotate::Helpers.true?(ENV['active_admin'])
16
options[:additional_file_patterns] = ENV['additional_file_patterns'] ? ENV['additional_file_patterns'].split(',') : []
17
options[:position_in_class] = Annotate::Helpers.fallback(ENV['position_in_class'], ENV['position'])
18
options[:position_in_fixture] = Annotate::Helpers.fallback(ENV['position_in_fixture'], ENV['position'])
0 commit comments