-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
# 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
# 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