Sha256: f6c517b28c65c9982555e6cfd0c8cf215856ea6fc899e2b1d33896aabba6c013

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
active_model_serializers-0.9.13 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.12 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.11 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb