Sha256: 27bbfc4508e4d985b7c3fe34553fd21128832044f15cdc6689c5309f32f110bf
Contents?: true
Size: 822 Bytes
Versions: 4
Compression:
Stored size: 822 Bytes
Contents
module MixRailsWriter class Engine < ::Rails::Engine config.generators do |g| g.test_framework :rspec g.integration_tool :rspec end initializer "mix-rails-writer.setup_menu", after: "admix.setup_menu" do ActiveMenu::get('admix-nav') do |nav| nav.get(:content) do |content| content.child :news do |news| news.text Proc.new {t('news.news')} news.href Proc.new {admix_news_index_url} end content.child :blogs do |blogs| blogs.text Proc.new {t('blogs.blogs')} blogs.href Proc.new {admix_news_index_url} blogs.visible Proc.new {current_user.can_manage?(Blog)} end end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems