Class: RESTFramework::Generators::ControllerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rest_framework/generators/controller_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_controller_fileObject



23
24
25
# File 'lib/rest_framework/generators/controller_generator.rb', line 23

def create_controller_file
  create_file "app/controllers/some_controller.rb", "# Add initialization content here"
end