Class: FieldGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
SuperScaffoldBase
Defined in:
lib/generators/super_scaffold/field/field_generator.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



21
22
23
24
25
26
# File 'lib/generators/super_scaffold/field/field_generator.rb', line 21

def generate
  # We add the name of the specific super_scaffolding command that we want to
  # invoke to the beginning of the argument string.
  ARGV.unshift "crud-field"
  BulletTrain::SuperScaffolding::Runner.new.run
end