Sha256: 4b046e360509d56043a5e4a676125cc85e76425a3610d86e7dd95e89878d7c1b

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

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

module Rails
  module Generators
    class ScaffoldControllerGenerator
      if Rails::VERSION::MAJOR >= 4
        source_root File.expand_path('../templates', __FILE__)

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_model_serializers-0.9.9 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.8 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.7 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.6 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb