Sha256: c9d4609d46d327cc602f55dff92bb5f37c6a0c6b6dc7e57a1997fc76f6c34a3b

Contents?: true

Size: 910 Bytes

Versions: 1

Compression:

Stored size: 910 Bytes

Contents

Refinery::Menus.configure do |config|
	# Configure which menus that will be created when seeding. You can then call them by refinery_menu('<MENU NAME>')
  # config.default_menus = <%= Refinery::Menus.default_menus.inspect %> 

  # Configure whether to enable html attributes for menu items
  # config.html_attributes = <%= Refinery::Menus.html_attributes.inspect %>


  # Configure which resources that can be linked to in the menu. Default is pages, and resources (files). 
  # Your resource class have to respond to 'url', and have a title attribute (specified below).
  
  # The options are:
  # klass: class type of resource
  # title_attr: attribute name (or method name) on resource to be shown as its title
  # admin_page_filter: hash of conditions to be used for filtering objects shown to be add-able via menu edit page
  
  # config.default_menus = <%= Refinery::Menus.menu_resources.inspect %> 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-menus-2.0.7 lib/generators/refinery/menus/templates/config/initializers/refinery/menus.rb.erb