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.8.4 lib/generators/resource_override.rb
active_model_serializers-0.8.3 lib/generators/resource_override.rb
active_model_serializers-0.8.2 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.5 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.5.alpha1 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.4 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.4.alpha5 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.4.alpha4 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.4.alpha3 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.4.alpha2 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.4.alpha1 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.3.rc1 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.3.alpha2 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.3.alpha1 lib/generators/resource_override.rb
gpi-active_model_serializers-0.8.2 lib/generators/resource_override.rb
active_model_serializers-0.8.1 lib/generators/resource_override.rb
active_model_serializers-0.8.0 lib/generators/resource_override.rb
active_model_serializers-0.7.0 lib/generators/resource_override.rb
active_model_serializers-0.6.0 lib/generators/resource_override.rb
active_model_serializers-0.5.2 lib/generators/resource_override.rb