Skip to content

Commit

Permalink
Namespace the Version class under the PaperTrail module
Browse files Browse the repository at this point in the history
  • Loading branch information
hoverbird committed Jul 7, 2012
1 parent e870e0d commit a0706fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/paper_trail/has_paper_trail.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit a0706fc

Please sign in to comment.