require 'rails/generators'
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'

module Rails
  module Generators
    class ScaffoldControllerGenerator
      source_paths << File.expand_path('../templates', __FILE__)

      hook_for :jbuilder, default: true
    end
  end
end

require 'rails/generators'
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'

module Rails
  module Generators
    class ScaffoldControllerGenerator
      source_paths << File.expand_path('../templates', __FILE__)

      hook_for :jbuilder, type: :boolean, default: true
    end
  end
end

Set proper type for jbuilder option to prevent a warning with Thor >= 0.19.3
Set proper type for jbuilder option to prevent a warning with Thor >= 0.19.3

See https://github.com/erikhuda/thor/pull/435, right now we got a warning
>Expected string default value for '--jbuilder'; got true (boolean)
