Sha256: c5cb9a8ae88f638660768ab36865790171270f049bf1061b0c512f6c8c5a2569

Contents?: true

Size: 339 Bytes

Versions: 3

Compression:

Stored size: 339 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

3 entries across 3 versions & 1 rubygems

Version Path
slash_admin-1.0.1 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-1.0 lib/generators/slash_admin/permissions/permissions_generator.rb
slash_admin-0.1.0 lib/generators/slash_admin/permissions/permissions_generator.rb