Sha256: affd525a3c1a1f3f122491587aaa5182b44eb2d979c71b7fc6b33173b0d77f13
Contents?: true
Size: 529 Bytes
Versions: 6
Compression:
Stored size: 529 Bytes
Contents
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
6 entries across 6 versions & 1 rubygems