Sha256: 639e7c7fe17630aa03ed80266aa625ed5da57de3fe09ef61a56309cbcafcda49
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
module Rails class Application def load_models! load_path = 'app/models' matcher = /\A#{Regexp.escape(load_path.to_s)}\/(.*)\.rb\Z/ Dir.glob("#{load_path}/**/*.rb").sort.each do |file| require_dependency file.sub(matcher, '\1') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simpleadmin-1.4.0 | lib/rails/application.rb |