Sha256: a7a5f9fdee98a7a183eb6a5a74f9465d32d0a0c976a7299e25dbbb0b44ca967b

Contents?: true

Size: 376 Bytes

Versions: 7

Compression:

Stored size: 376 Bytes

Contents

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

      def copy_files
        directories = %w(
          answers
          questions
        )

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
enju_question-0.1.0.pre7 lib/generators/enju_question/views_generator.rb
enju_question-0.1.0.pre6 lib/generators/enju_question/views_generator.rb
enju_question-0.1.0.pre5 lib/generators/enju_question/views_generator.rb
enju_question-0.1.0.pre4 lib/generators/enju_question/views_generator.rb
enju_question-0.1.0.pre3 lib/generators/enju_question/views_generator.rb
enju_question-0.1.0.pre2 lib/generators/enju_question/views_generator.rb
enju_question-0.1.0.pre lib/generators/enju_question/views_generator.rb