Permalink
Browse files

fixed requires/rails-init

  • Loading branch information...
1 parent 09cd1bb commit b98233465c45607cb7bf18caeb1ffd1c82aa7f29 @sirlantis committed Aug 14, 2010
Showing with 6 additions and 6 deletions.
  1. +5 −5 lib/historical.rb
  2. +1 −1 rails/init.rb
View
@@ -1,12 +1,12 @@
module Historical
IGNORED_ATTRIBUTES = [:id, :created_at, :updated_at]
- autoload :ModelHistory, "historical/model_history"
- autoload :ActiveRecord, "historical/active_record"
+ autoload :ModelHistory, "lib/historical/model_history"
+ autoload :ActiveRecord, "lib/historical/active_record"
module Models
- autoload :AttributeDiff, 'historical/models/attribute_diff'
- autoload :ModelDiff, 'historical/models/model_diff'
- autoload :ModelVersion, 'historical/models/model_version'
+ autoload :AttributeDiff, 'lib/historical/models/attribute_diff'
+ autoload :ModelDiff, 'lib/historical/models/model_diff'
+ autoload :ModelVersion, 'lib/historical/models/model_version'
end
end
View
@@ -1,3 +1,3 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'historical')
-ActiveRecord::Base.send(:include, Historical::ActiveRecord)
+ActiveRecord::Base.send(:extend, Historical::ActiveRecord)

0 comments on commit b982334

Please sign in to comment.