Sha256: cabd9cad68523c3396b81ae564c17383829d0468ca1a94edc737ee0413a2bb4d
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
# encoding: utf-8 module PagesCore class PagesPlugin < Plugin class << self def configure_localizations! unless @localizations_added I18n.load_path += Dir[ new.root.join("config", "locales", "**", "*.{rb,yml}") ] end @localizations_added = true end end paths["db/migrate"] = "db/migrate" admin_menu_item "News", proc { news_admin_pages_path(@locale) }, :pages, if: proc { Page.news_pages.any? }, current: proc { @page && @page.parent.try(&:news_page?) } admin_menu_item "Pages", proc { admin_pages_path(@locale) }, :pages admin_menu_item "Users", proc { admin_users_path }, :account end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.5.1 | lib/pages_core/pages_plugin.rb |