Module: Rich::Support

Extended by:
Support
Included in:
Support
Defined in:
lib/rich/support.rb,
lib/rich/support/version.rb,
lib/rich/support/core/string/colorize.rb,
lib/rich/support/core/string/html_safe.rb,
lib/rich/support/core/string/inflections.rb

Defined Under Namespace

Modules: Core, VERSION

Instance Method Summary collapse

Instance Method Details

#after_initialize(&block) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/rich/support.rb', line 13

def after_initialize(&block)
  if Rails::VERSION::MAJOR >= 3
    ActiveSupport.on_load :after_initialize, :yield => true, &block
  else
    Rails.configuration.after_initialize &block
  end
end

#append_gem_path(path) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/rich/support.rb', line 5

def append_gem_path(path)
  (@gem_paths ||= []) << path

  check_controllers_for path
  check_routes_for      path
  check_views_for       path
end