Sha256: 179c01a82fddf68f187ecbb802c8a94e129240727be46ca85c0ce58069d5d6af

Contents?: true

Size: 452 Bytes

Versions: 10

Compression:

Stored size: 452 Bytes

Contents

require 'rails/generators/base'

module CsvImportMagic
  module Generators
    class ControllersGenerator < Rails::Generators::Base
      desc 'Copies CSV Import Magic base controller to your application.'
      source_root File.expand_path('../../../../app/controllers/csv_import_magic', __FILE__)

      def copy_base_controller
        template 'base_controller.rb', 'app/controllers/csv_import_magic/base_controller.rb'
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csv_import_magic-0.0.11 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.10 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.8 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.7 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.6 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.5 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.4 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.3 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.2 lib/generators/csv_import_magic/controllers_generator.rb
csv_import_magic-0.0.1 lib/generators/csv_import_magic/controllers_generator.rb