Sha256: 1b7f73276eeba0922841804a22c7ceab58c48fcb97c51b1edb2542c7807c745e

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

Contents

require "rocket_navigation/version"

# cherry picking active_support stuff
require 'active_support/core_ext/array'
require 'active_support/core_ext/hash'
require 'active_support/core_ext/module/attribute_accessors'

require 'rocket_navigation/configuration'
require 'rocket_navigation/item'
require 'rocket_navigation/item_container'
require 'rocket_navigation/renderer'

if defined?(Rails)
  require "rocket_navigation/railtie"
end

module RocketNavigation
  mattr_accessor :default_renderer
  mattr_accessor :registered_renderers

  self.default_renderer = :list

  self.registered_renderers = {
    list:                 RocketNavigation::Renderer::List,
    links:                RocketNavigation::Renderer::Links,
    bootstrap:            RocketNavigation::Renderer::Bootstrap,
    breadcrumbs:          RocketNavigation::Renderer::Breadcrumbs,
    breadcrumbs_on_rails: RocketNavigation::Renderer::BreadcrumbsOnRails,
    text:                 RocketNavigation::Renderer::Text,
    json:                 RocketNavigation::Renderer::Json
  }
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rocket_navigation-0.3.3 lib/rocket_navigation.rb
rocket_navigation-0.3.2 lib/rocket_navigation.rb
rocket_navigation-0.3.1 lib/rocket_navigation.rb
rocket_navigation-0.3.0 lib/rocket_navigation.rb
rocket_navigation-0.2.3 lib/rocket_navigation.rb
rocket_navigation-0.2.2 lib/rocket_navigation.rb
rocket_navigation-0.2.1 lib/rocket_navigation.rb
rocket_navigation-0.2.0 lib/rocket_navigation.rb