Sha256: f972e10f66297038a328284f508a0a53420be548057517e86b3d5026d45ce7ea

Contents?: true

Size: 408 Bytes

Versions: 20

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

module ApipieDSL
  class ViewsGenerator < ::Rails::Generators::Base
    source_root File.expand_path('../../../app/views', __dir__)
    namespace 'apipie_dsl:views'
    desc 'Copy ApipieDSL views to your application'

    def copy_views
      directory 'apipie_dsl', 'app/views/apipie_dsl'
      directory 'layouts/apipie_dsl', 'app/views/layouts/apipie_dsl'
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
apipie-dsl-2.6.2 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.6.1 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.6.0 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.5.0 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.4.0 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.3.0 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.10 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.9 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.8 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.7 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.6 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.5 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.4 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.3 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.2 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.1 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.2.0 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.1.1 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.1.0 lib/generators/apipie_dsl/views_generator.rb
apipie-dsl-2.0.0 lib/generators/apipie_dsl/views_generator.rb