We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The method touch_with_version only accepts one optional attribute:
touch_with_version
https://github.com/airblade/paper_trail/blob/master/lib/paper_trail/record_trail.rb#L465
To behave the same as the ActiveRecord touch method it needs to accept multiple optional attributes (and apparently a Time as well since Rails v5.0)
touch
http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-touch
Just documenting this issue before I create a PR.
The text was updated successfully, but these errors were encountered:
To behave the same as the ActiveRecord touch method ..
If this is going to be a goal of ours, maybe it's time to re-investigate hooking into the after_touch callback and deprecate touch_with_version.
after_touch
Sorry, something went wrong.
Okay fair enough. Im gonna start looking into this.
Closing this issue because the touch_with_version method is deprecated in v9.0.0
No branches or pull requests
The method
touch_with_version
only accepts one optional attribute:https://github.com/airblade/paper_trail/blob/master/lib/paper_trail/record_trail.rb#L465
To behave the same as the ActiveRecord
touch
method it needs to accept multiple optional attributes (and apparently a Time as well since Rails v5.0)http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-touch
Just documenting this issue before I create a PR.
The text was updated successfully, but these errors were encountered: