Sha256: 8303a6dfc0e61447c62cd605154dafcba1cfb8bffd6611f82054a68fa22ae556

Contents?: true

Size: 326 Bytes

Versions: 27

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

module Racecar
  module Generators
    class ConsumerGenerator < Rails::Generators::NamedBase
      source_root File.expand_path("../../templates", __FILE__)

      def create_consumer_file
        template "consumer.rb.erb", "app/consumers/#{file_name}_consumer.rb"
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
racecar-2.11.0 lib/generators/racecar/consumer_generator.rb
racecar-2.11.0.beta4 lib/generators/racecar/consumer_generator.rb
racecar-2.11.0.beta3 lib/generators/racecar/consumer_generator.rb
racecar-2.11.0.beta2 lib/generators/racecar/consumer_generator.rb
racecar-2.11.0.beta1 lib/generators/racecar/consumer_generator.rb
racecar-2.10.0 lib/generators/racecar/consumer_generator.rb
racecar-2.10.0.beta2 lib/generators/racecar/consumer_generator.rb
racecar-2.10.0.beta1 lib/generators/racecar/consumer_generator.rb
racecar-2.9.0 lib/generators/racecar/consumer_generator.rb
racecar-2.9.0.beta1 lib/generators/racecar/consumer_generator.rb
racecar-2.8.2 lib/generators/racecar/consumer_generator.rb
racecar-2.8.2.beta lib/generators/racecar/consumer_generator.rb
racecar-2.8.1 lib/generators/racecar/consumer_generator.rb
racecar-2.8.0.rc.1 lib/generators/racecar/consumer_generator.rb
racecar-2.8.0.beta.2 lib/generators/racecar/consumer_generator.rb
racecar-2.8.0.beta.1 lib/generators/racecar/consumer_generator.rb
racecar-2.7.0 lib/generators/racecar/consumer_generator.rb
racecar-2.7.0.beta1 lib/generators/racecar/consumer_generator.rb
racecar-2.6.0 lib/generators/racecar/consumer_generator.rb
racecar-2.5.0 lib/generators/racecar/consumer_generator.rb