Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Merge requests
  • !362

Extract an `administrate:manifest` generator

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge gw-manifest-generator into master Dec 22, 2015
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 8

Created by: gracewashere

Closes #182 (closed).

Problem:

In established applications with many models, there is no easy way to generate Administrate dashboards for some but not all of the models.

Solution:

Add a generator for creating only an Administrate dashboard manifest. Users can edit the manifest file to add or remove models, and then run rails g administrate:install to generate only the dashboards listed in the manifest.

If the user runs rails g administrate:install without first generating a manifest file, Administrate will automatically create a manifest and use it to guide the installation.

Small Changes:

Stub out Rails.root in generators during tests. Using Rails.root lets us more accurately generate files when the Rails app is not at the root of the repository, such as in the example app.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gw-manifest-generator