Sha256: c1c60860dbb7696b234087fd533788ad6664ad768cbd58fd153709703ddd5d35

Contents?: true

Size: 317 Bytes

Versions: 29

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module SlashAdmin
  module Generators
    class OverrideAdminGenerator < Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      def override_admin
        template "admin.erb",
          "app/models/slash_admin/admin.rb"
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
slash_admin-1.2.2 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.2.1 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.2.0 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.1.0 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.0.6 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.0.5 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.0.4 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.0.3 lib/generators/slash_admin/override_admin/override_admin_generator.rb
slash_admin-1.0.2 lib/generators/slash_admin/override_admin/override_admin_generator.rb