The cause of this issue is that the current code creates a nested array by adding another array as a single element using the << operator. The variable t.files expects a flat array, but the current implementation results in a nested array like ['app/**/*..rb', ["lib/generators/redmine_plugin/redmine_plugin_generator.rb", ...]].
Replacing << with += creates a flat array, aligning with the expected structure for t.files.