Sha256: e36a22659060a666eb66e198478d5a720f261143885e4288ca5949ec981b1513
Contents?: true
Size: 1.71 KB
Versions: 2
Compression:
Stored size: 1.71 KB
Contents
# frozen_string_literal: true require 'meta_manager/orm/active_record' require 'page_parts/orm/active_record' # Use this hook to configure sunrise Sunrise.setup do |config| # Paginate records per page (default: 25) # config.default_items_per_page = 25 # Display audits events on dashboard (default: 50) # config.activities_per_page = 50 # By default show latest first (default: :desc) # config.default_sort_mode = :desc # The display for a model instance (i.e. a single database record). # config.label_methods = [:title, :name] # Default list template view (default: "thumbs") # config.default_index_view = "thumbs" # Avariable lists views (default: [:list, :thumbs, :table]) # config.available_index_views = [:list, :thumbs, :table] # Default sort order column (default: "sort_order") # config.sort_column = "sort_order" # Find template before rendering (default: true) # config.scoped_views = true # Set available locales in app (default: []) # config.available_locales = [] # Set transliteration for babosa gem # more info here: https://github.com/norman/babosa (default: :russian) # config.transliteration = :russian # Set list toolbar buttons (default: [:delete, :edit, :new, :sort, :export]) # config.default_toolbar_buttons = [:delete, :edit, :new, :sort, :export] # Lists the formats that should be treated as navigational (default: [:html, :json]) # config.navigational_formats = [:html, :json] # Welcome root path options # config.root_route_options = {to: "manager#index", model_name: "structures"} end PublicActivity::Config.set do orm :active_record end # if Settings.table_exists? # Settings.some_setting = "value" # Settings.some_setting2 = "value2" # end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-1.1.1 | lib/generators/sunrise/templates/config/active_record/sunrise.rb |
sunrise-cms-1.1.0 | lib/generators/sunrise/templates/config/active_record/sunrise.rb |