config.assets.version = '1.0'
config.autoload_paths += %W(#{config.root}/lib/validators)
+
+ def self.licenses=(ary)
+ @@licenses = ary
+ end
+
+ def self.licenses
+ @@licenses
+ end
end
end
+
+Pettanr::Application.licenses = YAML.load(open(Rails.root + 'config/license.yml').read)
+MagicNumber = YAML.load(open(Rails.root + 'config/magic_number.yml').read)
+MagicNumber['test_layout'] = if File.exist? Rails.root + 'config/test_layout'
+ 'test'
+else
+ false
+end
y = YAML.load(open(Rails.root + 'config/picture_io.yml').read)
require y[Rails.env]["adapter"]
pio = PictureIO.const_get y[Rails.env]["io"]
end
end
+module Pettanr
+ TestLayout = false
+end
+