Sha256: 52f8163cec819f67eee7a23a2c23407d3bc0fd7f5f1cf0740cd6ee41b9fa4f30

Contents?: true

Size: 290 Bytes

Versions: 20

Compression:

Stored size: 290 Bytes

Contents

module SchemaSerializer::Generators
  class SerializerGenerator < Rails::Generators::NamedBase
    source_root File.expand_path("templates", __dir__)

    def create_serializer
      template "serializer.rb.erb", File.join("app/serializers", "#{file_name}_serializer.rb")
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
schema_serializer-0.2.7 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.2.6 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.2.4 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.2.3 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.2.2 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.2.1 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.2.0 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.1.3 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.1.2 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.1.1 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.1.0 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.10 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.9 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.8 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.7 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.6 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.5 lib/generators/schema_serializer/serializer/serializer_generator.rb
schema_serializer-0.0.4 lib/generators/schema_serializer/serializer_generator.rb
schema_serializer-0.0.3 lib/generators/schema_serializer/serializer_generator.rb
schema_serializer-0.0.2 lib/generators/schema_serializer/serializer_generator.rb