Docs: Break long lines [ci skip]
This commit is contained in:
parent
491b15fb8c
commit
c003ae99a4
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue