Sha256: 6c3bec8421554783182df626991860683ee6be0cdfbd2dd000a8a1c7d426358f

Contents?: true

Size: 668 Bytes

Versions: 14

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true
module ActiveAdmin
  module Generators
    class ViewsGenerator < Rails::Generators::Base
      source_root File.expand_path("../../../", __dir__)

      def copy_views
        directory "app/views/layouts"
        directory "app/views/active_admin", recursive: false
        directory "app/views/active_admin/devise"
        directory "app/views/active_admin/kaminari"
        copy_file "app/views/active_admin/shared/_resource_comments.html.erb"
        copy_file "app/views/active_admin/resource/_index_blank_slate.html.erb"
        copy_file "app/views/active_admin/resource/_index_empty_results.html.erb"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
activeadmin-4.0.0.beta14 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta13 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta12 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta11 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta10 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta9 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta8 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta7 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta6 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta5 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta4 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta3 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta2 lib/generators/active_admin/views_generator.rb
activeadmin-4.0.0.beta1 lib/generators/active_admin/views_generator.rb