Sha256: a385a17aa245f6b2fe90d4dcb24fcecb92f2fcbaf17bccafc0f7301d29b9ce41

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

Carload.setup do |config|
  # Set the title that will be displayed on the browser tab area.
  config.page.title = nil

  # Set the footer text that will be displayed on each page.
  config.page.footer = nil

  # Set the colors of page elements.
  config.page.main_color = nil
  config.page.text_color = 'black'
  config.page.button_color = nil
  config.page.button_text_color = nil

  # Set which authentication solution is used. Currently, we only support Devise.
  config.auth_solution = :devise

  # Set which file upload solution is used. Currently, we only support Carrierwave.
  config.upload_solution = :carrierwave

  # Set which search engine to use (elasticsearch or pg_search).
  config.search_engine = :elasticsearch

  # Set the actions used to discern user's permission to access dashboard.
  #
  #   config.dashboard.permits_user.<method> = '...'
  #
  # There are four access methods can be configured:
  #
  #   index, new, edit, destroy
  #
  # Also you can use a special method 'all' to set the default permission.
  # The permission can also be array, the relation among them is OR.
  # By doing this, you have full control on the access permission.
  # TODO: Set the permissions for each data table.
  config.dashboard.permits_user.all = 'role.admin?'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
carload-0.5.3 lib/generators/carload/templates/carload.rb
carload-0.5.2 lib/generators/carload/templates/carload.rb
carload-0.5.1 lib/generators/carload/templates/carload.rb
carload-0.5.0 lib/generators/carload/templates/carload.rb
carload-0.4.5 lib/generators/carload/templates/carload.rb
carload-0.4.4 lib/generators/carload/templates/carload.rb
carload-0.4.3 lib/generators/carload/templates/carload.rb
carload-0.4.2 lib/generators/carload/templates/carload.rb