Skip to content

Instantly share code, notes, and snippets.

@smpallen99
Created May 15, 2017 04:23
Show Gist options
  • Save smpallen99/c0bd6b7bafb94aba28714bde1aedb85e to your computer and use it in GitHub Desktop.
Save smpallen99/c0bd6b7bafb94aba28714bde1aedb85e to your computer and use it in GitHub Desktop.
ExAdminRedux Config Example
# Very similar to current ExAdmin config file
# This examples belows to a demo app called `NewAdmin`
use Mix.Config
# List of Resource Modules, on for each ExAdmin managed resource
config :ex_admin, resources: [
NewAdmin.ExAdmin.Country,
NewAdmin.ExAdmin.State,
NewAdmin.ExAdmin.User,
],
module: NewAdmin,
# ExAdmin will use the Apps' Gettext Module
messages_backend: NewAdmin.Gettext,
# much better them support
theme: "material_bootstrap",
# ExAdmin requires an adapter for reflecting on the model's
# schema. I have implemented an Ecto adapter which lives
# in a separate dependency. This will allow support for non-ecto models
schema_adapter: ExAdmin.Schema.Adapters.Ecto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment