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-6.6.1 lib/lhs.rb
lhs-6.6.0 lib/lhs.rb
lhs-6.5.0 lib/lhs.rb
lhs-6.4.0 lib/lhs.rb
lhs-6.3.1 lib/lhs.rb
lhs-6.3.0 lib/lhs.rb
lhs-6.2.0 lib/lhs.rb
lhs-6.1.0 lib/lhs.rb
lhs-6.0.0 lib/lhs.rb
lhs-5.7.1 lib/lhs.rb
lhs-5.7.0 lib/lhs.rb
lhs-5.6.6 lib/lhs.rb
lhs-5.6.5 lib/lhs.rb
lhs-5.6.4 lib/lhs.rb
lhs-5.6.3 lib/lhs.rb
lhs-5.6.2 lib/lhs.rb
lhs-5.6.1 lib/lhs.rb
lhs-5.6.0 lib/lhs.rb
lhs-5.5.0 lib/lhs.rb
lhs-5.4.2 lib/lhs.rb