Skip to content
mbrookes edited this page Nov 24, 2014 · 5 revisions

Configurations

Configurations are used to customize things that are typically global across all of Upmin Admin. For example, you might want to determine which models are visible in your admin pages. The easiest way to get things configured is to create an upmin_admin.rb initialize in config/initializers/upmin_admin.rb with the following code:

Upmin.configure do |config|
  # Configurations go here - e.g.: 
  # config.models = [:user, :order, :product]
end

Available configurations are:

  • models - This is a list of models you want to appear in your Upmin Admin pages.

  • colors - This overrides the default list of colors used to highlight models. Please reference lib/upmin/configuration.rb for a full list of supported colors.

  • items_per_page - (integer) This overrides the default of 30 items per page. This (or the default if not overidden here) can in turn be specified on a per model basis.

If you think another config should be added feel free to create an issue.

Clone this wiki locally