Sha256: 25ce8aa4523efc16bcc1722f634212315829f1ae1172434b35405f0cafa92c82

Contents?: true

Size: 387 Bytes

Versions: 8

Compression:

Stored size: 387 Bytes

Contents

module EnjuInventory
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path('../../../../app/views', __FILE__)

      def copy_files
        directories = %w(
          inventories
          inventory_files
        )

        directories.each do |dir|
          directory dir, "app/views/#{dir}"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enju_inventory-0.1.11.pre7 lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.11.pre6 lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.11.pre5 lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.11.pre4 lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.11.pre2 lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.11.pre lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.10 lib/generators/enju_inventory/views_generator.rb
enju_inventory-0.1.9 lib/generators/enju_inventory/views_generator.rb