OSDN Git Service

fix:error dlg
[pettanr/pettanr.git] / config / environments / development.rb
index 1f7eb0e..72d98a8 100644 (file)
@@ -1,6 +1,13 @@
-require 'DMagick'
-
 Pettanr::Application.configure do
+autoload = false
+if autoload
+  ActiveSupport::Dependencies.autoload_paths << File::join( Rails.root, 'lib')
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Peta' 
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Editor' 
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'ManifestBase' 
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'Manifest' 
+  ActiveSupport::Dependencies.explicitly_unloadable_constants << 'LocalManifest' 
+end
   # Settings specified here will take precedence over those in config/application.rb
 
   # In the development environment your application's code is reloaded on
@@ -8,9 +15,6 @@ Pettanr::Application.configure do
   # since you don't have to restart the web server when you make code changes.
   config.cache_classes = false
 
-  # Log error messages when you accidentally call methods on nil.
-  config.whiny_nils = true
-
   # Show full error reports and disable caching
   config.consider_all_requests_local       = true
   config.action_controller.perform_caching = false
@@ -21,19 +25,15 @@ Pettanr::Application.configure do
   # Print deprecation notices to the Rails logger
   config.active_support.deprecation = :log
 
-  # Only use best-standards-support built into browsers
-  config.action_dispatch.best_standards_support = :builtin
-
   # Do not compress assets
   config.assets.compress = false
 
   # Expands the lines which load the assets
   config.assets.debug = true
+  
+  # config.assets.digest = true
+  # config.static_cache_control = "public, max-age=1"
+config.eager_load = false
+config.active_record.migration_error = :page_load
 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