Sha256: 8fe502f71d11e1f879ea03623b6cdc8a14bc7259bc03f51c869b514d06b5d487

Contents?: true

Size: 604 Bytes

Versions: 11

Compression:

Stored size: 604 Bytes

Contents

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

      def copy_files
        directories = %w(
          classification_types
          classifications
          manifestations
          subject_has_classifications
          subject_heading_type_has_subjects
          subject_heading_types
          subject_types
          subjects
          work_has_subjects
        )

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_subject-0.1.0.pre11 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre10 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre9 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre8 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre7 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre6 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre5 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre4 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre3 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre2 lib/generators/enju_subject/views_generator.rb
enju_subject-0.1.0.pre lib/generators/enju_subject/views_generator.rb