Sha256: b74eb06b884b537cca0e7170c3fee35e13cb0755a240769cc6882dc979c6bf1d

Contents?: true

Size: 1.58 KB

Versions: 13

Compression:

Stored size: 1.58 KB

Contents

require 'meta_manager/orm/mongoid'
require 'page_parts/orm/mongoid'

# 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]
  
  # Defailt list template view (default: "thumbs")
  # config.default_list_view = "thumbs"
  
  # Avariable lists views (default: [:list, :thumbs, :table])
  # config.available_list_view = [:list, :thumbs, :table]
  
  # Defailt list template view (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]
end

PublicActivity::Config.set do
 orm :mongoid
end

#if Settings.table_exists?
#  Settings.defaults[:some_setting] = "value"
#  Settings.defaults[:some_setting2] = "value2"
#end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sunrise-cms-0.7.0.rc2 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.7.0.rc1 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.11 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.10 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.9 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.8 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.7 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.6 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.5 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.4 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.3 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.2 lib/generators/sunrise/templates/config/mongoid/sunrise.rb
sunrise-cms-0.6.1 lib/generators/sunrise/templates/config/mongoid/sunrise.rb