Sha256: bdbb8415b6b6d3981cce189cb46406b73c5e2a008d28faf9ef7812cda74598a0

Contents?: true

Size: 621 Bytes

Versions: 4

Compression:

Stored size: 621 Bytes

Contents

module MixRailsWriter
  class Engine < ::Rails::Engine
    
    config.generators do |g|                                                               
      g.test_framework :rspec
      g.integration_tool :rspec
    end

    def navigation
      if defined? Admix
        Admix::Navigation::NavBar.post_menu do
          Admix::Navigation::NavBar.find(:content) do |menu|
            menu.submenu do |submenu|
              submenu.key   = :news
              submenu.title = I18n.t 'news.news'
              submenu.url   = 'admix_news_index_url'
            end
          end
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mix-rails-0.23.1 mix-rails-writer/lib/mix-rails-writer/engine.rb
mix-rails-writer-0.23.1 lib/mix-rails-writer/engine.rb
mix-rails-0.23.0 mix-rails-writer/lib/mix-rails-writer/engine.rb
mix-rails-writer-0.23.0 lib/mix-rails-writer/engine.rb