Sha256: a014c99bb0f159e4b08f0c3c20dcfd0057d75112ef5323c4ae0d7934173ef8bc

Contents?: true

Size: 333 Bytes

Versions: 29

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

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

      def create_permissions
        template "permissions.erb",
          "app/models/slash_admin/admin_ability.rb"
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
slash_admin-1.5.11 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.10 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.9 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.8 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.7 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.6 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.5 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.4 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.3 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.2 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5.1 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.5 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.4.1 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.4 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.3.5 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.3.4 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.3.3 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.3.2 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.3.1 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.3.0 lib/generators/slash_admin/permissions/permissions_generator.rb