Skip to content

Commit 2286b49

Browse files
committed
Using true? helpers to enable other forms of truth for active_admin option
1 parent f350a9d commit 2286b49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/annotate_models.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ task annotate_models: :environment do
1212

1313
options = {is_rake: true}
1414
ENV['position'] = options[:position] = Annotate::Helpers.fallback(ENV['position'], 'before')
15-
options[:active_admin] = ENV.fetch('active_admin', 'false')
15+
options[:active_admin] = Annotate::Helpers.true?(ENV['active_admin'])
1616
options[:additional_file_patterns] = ENV['additional_file_patterns'] ? ENV['additional_file_patterns'].split(',') : []
1717
options[:position_in_class] = Annotate::Helpers.fallback(ENV['position_in_class'], ENV['position'])
1818
options[:position_in_fixture] = Annotate::Helpers.fallback(ENV['position_in_fixture'], ENV['position'])

0 commit comments

Comments
 (0)