Sha256: c32228a88647b13a86d7b9be9517f9d1f6b589c376ef118ae89755921b3c069b
Contents?: true
Size: 418 Bytes
Versions: 8
Compression:
Stored size: 418 Bytes
Contents
require "scrivito/errors" # @api public module Scrivito def self.autoload_all_sources source_files = Dir.glob(File.expand_path("../scrivito/*.rb", __FILE__)).map do |file| File.basename(file) end source_files.each do |file| name = file.gsub(".rb", "") autoload name.camelcase, "scrivito/#{name}" end end autoload_all_sources end require "scrivito/engine" if defined?(Rails)
Version data entries
8 entries across 8 versions & 1 rubygems