```ruby
require 'rails/generators'
require 'rails/generators/rails/resource/resource_generator'

module Rails
  module Generators
    class ResourceGenerator
      hook_for :serializer, default: true, boolean: true
    end
  end
end
```

Fix thor warning to set type: :boolean, was setting `{ banner: "" }`
user
```ruby
require 'rails/generators'
require 'rails/generators/rails/resource/resource_generator'

module Rails
  module Generators
    class ResourceGenerator
      hook_for :serializer, default: true, type: :boolean
    end
  end
end
```
assistant