Sha256: f5bf1345a53a9f7fe3d2751c626e7eb54e87bf751cefa0e10c7e90bd53a42f7c

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

require_relative "base"

module Suspenders
  class JsonGenerator < Generators::Base
    def add_oj
      gem "oj"
      Bundler.with_unbundled_env { run "bundle install" }
    end

    def configure_oj
      copy_file "oj.rb", "config/initializers/oj.rb"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
suspenders-20230113.0 lib/suspenders/generators/json_generator.rb
suspenders-1.56.1 lib/suspenders/generators/json_generator.rb