Sha256: 182522d78ac162bcbe8fa0276d7b16203ad7e914da9a0adbfba97ae43f0b64a3
Contents?: true
Size: 395 Bytes
Versions: 55
Compression:
Stored size: 395 Bytes
Contents
require 'lhc' module LHS end Gem.find_files('lhs/**/*.rb').sort.each { |path| require path } # Preload all the LHS::Records that are defined in app/models class Engine < Rails::Engine initializer 'Load all LHS::Records from app/models/**' do |app| Dir.glob(app.root.join('app/models/**/*.rb')).each do |file| require file if File.read(file).match('LHS::Record') end end end
Version data entries
55 entries across 55 versions & 1 rubygems