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

Version Path
lhs-7.4.0 lib/lhs.rb
lhs-7.3.0 lib/lhs.rb
lhs-7.2.5 lib/lhs.rb
lhs-7.2.4 lib/lhs.rb
lhs-7.2.3 lib/lhs.rb
lhs-7.2.2 lib/lhs.rb
lhs-7.2.1 lib/lhs.rb
lhs-7.2.0 lib/lhs.rb
lhs-7.1.0 lib/lhs.rb
lhs-7.0.3 lib/lhs.rb
lhs-7.0.2 lib/lhs.rb
lhs-7.0.1 lib/lhs.rb
lhs-7.0.0 lib/lhs.rb
lhs-6.8.2 lib/lhs.rb
lhs-6.8.1 lib/lhs.rb
lhs-6.8.0 lib/lhs.rb
lhs-6.7.2 lib/lhs.rb
lhs-6.7.1 lib/lhs.rb
lhs-6.7.0 lib/lhs.rb
lhs-6.6.2 lib/lhs.rb