Sha256: 34659ffdf71d9adc389f19ef8fdce7f8394b945d4fba133b3535eca18a82f17c
Contents?: true
Size: 548 Bytes
Versions: 12
Compression:
Stored size: 548 Bytes
Contents
rad.configurators class Abstract def initialize dir @dir = File.expand_path(dir) end # def config options = {} # rad.config.merge_config! "#{dir}/config/config.yml", options # end def routes routes_file = "#{dir}/config/routes.rb" load routes_file if File.exist? routes_file end def locales I18n.load_path += Dir["#{dir}/config/locales/**/*.{rb,yml}"] I18n.load_path += Dir["#{dir}/config/locales/*.{rb,yml}"] end protected attr_reader :dir #, :after_config, :after_environment end
Version data entries
12 entries across 12 versions & 1 rubygems