Sha256: e39f21fc4ada65bc4ea8cac8194f6b72edae02ab2ae320c445c74876e50c1627

Contents?: true

Size: 354 Bytes

Versions: 9

Compression:

Stored size: 354 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
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
active_model_serializers-0.9.5 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.4 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.3 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.2 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.1 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.0 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers_rails_2.3-0.9.0.alpha1 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers-0.9.0.alpha1 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb
active_model_serializers_rails_2.3-0.9.0.pre2 lib/active_model/serializer/generators/serializer/scaffold_controller_generator.rb