Sha256: 73bc9307f936c615c2dd063044f4dd544cf46f96bf6e3a9edaa57c841af89332

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

require 'rails/generators'
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'

module Rails
  module Generators
    class ScaffoldControllerGenerator
      source_root File.expand_path('../../templates/scaffold_controller', __FILE__)

      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ember-appkit-rails-0.5.0 lib/generators/ember/scaffold_controller_override.rb
ember-appkit-rails-0.4.0 lib/generators/ember/scaffold_controller_override.rb