Class: Abyme::Generators::ResourceGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/abyme/resource/resource_generator.rb

Instance Method Summary collapse

Instance Method Details

#call_generatorsObject



11
12
13
14
15
# File 'lib/generators/abyme/resource/resource_generator.rb', line 11

def call_generators
  Rails::Generators.invoke "abyme:model", [name, association, *attributes.map(&:name)]
  Rails::Generators.invoke "abyme:controller", [name]
  Rails::Generators.invoke "abyme:view", [association, *attributes.map(&:name)]
end