Sha256: 2317099cb80c715fa4557f195be0d8594de7a26ef5af475a0cb2fcc48eb011e0

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

Cmor::Audits.configure do |config|
  # Set the resources, that will be shown in the backend menu.
  # 
  # Default: config.resources_controllers = -> {[
  #   Cmor::Audits::PaperTrail::VersionsController,
  # ]}
  # 
  config.resources_controllers = -> {[
    Cmor::Audits::PaperTrail::VersionsController,
  ]}

  # Set the resources, that will be shown in the backend menu.
  # 
  # Default: config.resource_controllers = -> {[]}
  # 
  config.resource_controllers = -> {[]}

  # Set the services, that will be shown in the backend menu.
  # 
  # Default: config.service_controllers = -> {[]}
  # 
  config.service_controllers = -> {[]}

  # Set the sidebars, that will be shown in the backend menu.
  # 
  # Default: config.sidebar_controllers = -> {[]}
  # 
  config.sidebar_controllers = -> {[]}

  # Specify the models that will be audited. Listing models here is the same
  # as adding has_paper_trail to the model class directly. The hash is passed
  # to has_paper_trail as options hash.
  #
  # Example: config.resources = -> { { "Post" => { on: [:update] } } }
  #
  # Default: config.resources = -> { {} }
  #
  config.resources = -> { {} }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cmor_audits-0.0.58.pre lib/generators/cmor/audits/install/templates/initializer.rb
cmor_audits-0.0.57.pre lib/generators/cmor/audits/install/templates/initializer.rb
cmor_audits-0.0.56.pre lib/generators/cmor/audits/install/templates/initializer.rb