Module: Tabster

Includes:
Configurable, Version
Defined in:
lib/tabster/tab_builder.rb,
lib/tabster.rb,
lib/tabster/tab.rb,
lib/tabster/helpers.rb,
lib/tabster/railtie.rb,
lib/tabster/tab_set.rb,
lib/tabster/version.rb,
lib/tabster/configurable.rb,
lib/generators/tabster/install_generator.rb

Overview

TODO make use of the passed block to create subitems in the navigation.

Defined Under Namespace

Modules: Configurable, Generators, Helpers, Version Classes: Railtie, Tab, TabBuilder, TabSet

Constant Summary collapse

SEPARATORS =
%w( / )
REQUIRED_TAB_FRAGMENTS =
[:path_to]
ALLOWED_PATH_FRAGMENTS =
[:controller, :action]

Constants included from Version

Version::MAJOR, Version::MINOR, Version::STRING, Version::TINY

Class Method Summary collapse

Methods included from Configurable

configure, to_hash

Class Method Details

.initializeObject



16
17
18
19
20
# File 'lib/tabster.rb', line 16

def initialize
  raise "ActionController is not available yet." unless defined?(ActionController)
  ActionController::Base.send(:include, self)
  ActionController::Base.send(:helper, Tabster::Helpers)
end

.versionObject



22
23
24
# File 'lib/tabster.rb', line 22

def version
  Tabster::Version::STRING
end