Skip to content
Browse files

Namespace the Version class under the PaperTrail module

  • Loading branch information...
1 parent e870e0d commit a0706fcbb9fd897d4d1bb4914925167190c4d1fb @hoverbird committed Jul 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/paper_trail/has_paper_trail.rb
  2. +1 −1 lib/paper_trail/version.rb
View
2 lib/paper_trail/has_paper_trail.rb
@@ -39,7 +39,7 @@ def has_paper_trail(options = {})
attr_accessor self.version_association_name
class_attribute :version_class_name
- self.version_class_name = options[:class_name] || 'Version'
+ self.version_class_name = options[:class_name] || 'PaperTrail::Version'
class_attribute :ignore
self.ignore = ([options[:ignore]].flatten.compact || []).map &:to_s
View
2 lib/paper_trail/version.rb
@@ -1,4 +1,4 @@
-class Version < ActiveRecord::Base
+class PaperTrail::Version < ActiveRecord::Base
belongs_to :item, :polymorphic => true
validates_presence_of :event
attr_accessible :item_type, :item_id, :event, :whodunnit, :object, :object_changes

0 comments on commit a0706fc

Please sign in to comment.
Something went wrong with that request. Please try again.