Sha256: 17790964f4dc7065ebb8310049b8b3f3fbb5ea74acab348e316854f970ac7420

Contents?: true

Size: 240 Bytes

Versions: 22

Compression:

Stored size: 240 Bytes

Contents

require "rails/generators"
require "rails/generators/rails/resource/resource_generator"

module Rails
  module Generators
    ResourceGenerator.class_eval do
      def add_serializer
        invoke "serializer"
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
active_model_serializers-0.5.1 lib/generators/resource_override.rb
active_model_serializers-0.5.0 lib/generators/resource_override.rb