Sha256: d69f95fea417c1c192e12bcfcda5d638dfc46fbc8705b21176d2dfb31bf9f97f

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

module Vision
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)
      argument :resource_name, :type => :string
      desc "Creates a vision resource_controller"
      def copy_view_files
        directory 'resource', "app/views/vision/#{resource_name.tableize}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vision-0.0.2 lib/generators/vision/views_generator.rb
vision-0.0.1 lib/generators/vision/views_generator.rb
vision-0.0.1.beta2 lib/generators/vision/views_generator.rb
vision-0.0.1.beta lib/generators/vision/views_generator.rb
vision-0.0.1.alpha1 lib/generators/vision/views_generator.rb