Sha256: 81ee32856868f0f8137557ef6bbe1ee914c8f3dc87ad55936887ea107472de04
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
require 'orange-core/middleware/base' module Orange::Middleware class Loader < Base def init(*args) unless Orange.autoloaded? Dir.glob(File.join(orange.app_dir, 'resources', '*.rb')).each do |f| require f orange.load Orange::Inflector.constantize(Orange::Inflector.camelize(File.basename(f, '.rb'))).new end Dir.glob(File.join(orange.app_dir, 'cartons', '*.rb')).each { |f| require f } Dir.glob(File.join(orange.app_dir, 'middleware', '*.rb')).each { |f| require f } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orange-core-0.7.1 | lib/orange-core/middleware/loader.rb |