OSDN Git Service

fix form
[pettanr/pettanr.git] / config / environments / development.rb
index 6820832..4b6668d 100644 (file)
@@ -1,4 +1,9 @@
 Pettanr::Application.configure do
+
+  ActiveSupport::Dependencies.autoload_paths << File::join( Rails.root, 'lib')
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Editor' 
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Manifest' 
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Peta' 
   # Settings specified here will take precedence over those in config/application.rb
 
   # In the development environment your application's code is reloaded on
@@ -27,18 +32,8 @@ Pettanr::Application.configure do
 
   # Expands the lines which load the assets
   config.assets.debug = true
+  
+  # config.assets.digest = true
+  # config.static_cache_control = "public, max-age=1"
 end
 
-require 'local_picture'
-PictureIO.setup do |config|
-  config.original_picture_io = PictureIO::LocalPicture.new '/sites/original/pettanr/'
-  config.resource_picture_io = PictureIO::LocalPicture.new  '/sites/resource/pettanr/'
-  config.system_picture_io = PictureIO::LocalPicture.new  '/sites/system/pettanr/'
-end
-module Pettanr
-  if File.exist? Rails.root + 'config/test_layout'
-    TestLayout = 'test'
-  else
-    TestLayout = false
-  end
-end