Sha256: 19e10edb0a15a82984f0e92befc96ff62e69b68aab4c7cf389b031cfb835427c

Contents?: true

Size: 988 Bytes

Versions: 4

Compression:

Stored size: 988 Bytes

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,
    breadcrumbs:          RocketNavigation::Renderer::Breadcrumbs,
    breadcrumbs_on_rails: RocketNavigation::Renderer::BreadcrumbsOnRails,
    text:                 RocketNavigation::Renderer::Text,
    json:                 RocketNavigation::Renderer::Json
  }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocket_navigation-0.1.3 lib/rocket_navigation.rb
rocket_navigation-0.1.2 lib/rocket_navigation.rb
rocket_navigation-0.1.1 lib/rocket_navigation.rb
rocket_navigation-0.1.0 lib/rocket_navigation.rb