Support for paper_trail custom version classes #1904

Merged
merged 1 commit into from Feb 26, 2014

Projects

None yet

4 participants

Contributor
vyorkin commented Feb 3, 2014

Tweak paper_trail/auditing_adapter to provide support for using custom version classes/models/db tables. Example from paper_trail's wiki:

class PostVersion < PaperTrail::Version
  # custom behaviour, e.g:
  self.table_name = :post_versions
end

class Post < ActiveRecord::Base
  has_paper_trail :class_name => 'PostVersion'
end
vad4msiu commented Feb 3, 2014

👍

good idea! 👍

@mshibuya mshibuya merged commit 952b37b into sferik:master Feb 26, 2014

1 check passed

default The Travis CI build passed
Details
Collaborator

Thanks!

@vyorkin vyorkin deleted the unknown repository branch Mar 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment