Class: Radiant::Extension::Configuration

Inherits:
Rails::Engine::Configuration
  • Object
show all
Defined in:
lib/radiant/extension.rb

Overview

TODO: Maybe resurrect later if we can work out how to do this.

Currently, extensions need to provide a config/routes.rb file rather than using define_routes

def self.define_routes(&block)

Rails.application.routes.draw do |map|
  yield map
end

end

Instance Method Summary collapse

Instance Method Details

#pathsObject



40
41
42
43
44
45
46
47
# File 'lib/radiant/extension.rb', line 40

def paths
  super.tap do |p|
    # declare that classes under all extension "lib" directories
    # should auto-load and eager load (when applicable)
    p.lib.autoload!
    p.lib.eager_load!
  end
end