Docs: Break long lines [ci skip]

This commit is contained in:
Jared Beck 2015-07-02 11:29:11 -04:00
parent 491b15fb8c
commit c003ae99a4
1 changed files with 6 additions and 4 deletions

View File

@ -266,11 +266,13 @@ module PaperTrail
PaperTrail.whodunnit = current_whodunnit
end
# Mimicks behavior of `touch` method from `ActiveRecord::Persistence`, but generates a version
# Mimicks behavior of `touch` method from `ActiveRecord::Persistence`,
# but generates a version
#
# TODO: lookinto leveraging the `after_touch` callback from `ActiveRecord` to allow the
# regular `touch` method go generate a version as normal. May make sense to switch the `record_update`
# method to leverage an `after_update` callback anyways (likely for v4.0.0)
# TODO: look into leveraging the `after_touch` callback from
# `ActiveRecord` to allow the regular `touch` method go generate a version
# as normal. May make sense to switch the `record_update` method to
# leverage an `after_update` callback anyways (likely for v4.0.0)
def touch_with_version(name = nil)
raise ActiveRecordError, "can not touch on a new record object" unless persisted?