Skip to Content Skip to Search

class Rails::Generators::BenchmarkGenerator

Inherits From

Constants

IPS_GEM_NAME

"benchmark-ips"

IPS_GEM_USED_REGEXP

/gem.*\b#{IPS_GEM_NAME}\b.*/

Public instance methods

generate_layout()

Permalink
Source code GitHub
# File railties/lib/rails/generators/rails/benchmark/benchmark_generator.rb, line 13
def generate_layout
  add_ips_to_gemfile unless ips_installed?
  template("benchmark.rb.tt", "script/benchmarks/#{file_name}.rb")
end

Definition files