OSDN Git Service

Merge branch 'v04' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v04license
[pettanr/pettanr.git] / config / application.rb
index 35fd1cc..c752cfa 100644 (file)
@@ -7,6 +7,7 @@ require "action_mailer/railtie"
 require "active_resource/railtie"
 require "sprockets/railtie"
 # require "rails/test_unit/railtie"
+require 'digest/md5'
 
 if defined?(Bundler)
   # If you precompile assets before deploying to production, use this line
@@ -16,6 +17,7 @@ if defined?(Bundler)
 end
 
 module Pettanr
+  VERSION = '0.4'
   class Application < Rails::Application
     # Settings in config/environments/* take precedence over those specified here.
     # Application configuration should go into files in config/initializers
@@ -51,5 +53,12 @@ config.assets.initialize_on_precompile = false
 
     # Version of your assets, change this if you want to expire all your assets
     config.assets.version = '1.0'
+    
+    config.autoload_paths += %W(#{config.root}/lib/validators)
   end
 end
+module ActiveRecord
+  class Forbidden < ActiveRecordError
+  end
+end
+