Sha256: ed9e075e7d4ccb1d8e484f6d1237839d0aa98809b3b1913d0d8f10ed5f499d6f
Contents?: true
Size: 616 Bytes
Versions: 28
Compression:
Stored size: 616 Bytes
Contents
# Require this file in a non-Rails app to load all the things require "active_model" require "mongoid" require "govuk_content_models" root_path = "#{File.dirname(__FILE__)}/../.." %w[ app/models app/validators app/traits lib ].each do |path| full_path = File.expand_path("#{root_path}/#{path}") $LOAD_PATH.unshift full_path unless $LOAD_PATH.include?(full_path) end # Require validators first, then other files in app Dir.glob("#{root_path}/app/validators/*.rb").each { |f| require f } Dir.glob("#{root_path}/app/traits/*.rb").each { |f| require f } Dir.glob("#{root_path}/app/**/*.rb").each { |f| require f }
Version data entries
28 entries across 28 versions & 1 rubygems