Class: Rails::Generators::ScaffoldControllerGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/ember/scaffold_controller_override.rb

Instance Method Summary collapse

Instance Method Details

#create_controller_filesObject


9
10
11
# File 'lib/generators/ember/scaffold_controller_override.rb', line 9

def create_controller_files
  template "controller.rb", File.join("app/controllers/api/v#{::Rails.application.config.ember.api_version}", class_path, "#{controller_file_name}_controller.rb")
end