paper-trail-gem Questions

6

Solved

I had Paper Trail Gem nicely set up with my basic model Article which had a text column called body. However, after I have implemented Action Text to my application and removed the column body from...
Lee asked 6/4, 2019 at 0:56

5

Solved

I'm using the Papertrail gem in my project and have searched extensively to try and find how to do the following. What I'd like to do is find the version of my object where a specific attribute ca...
Bryner asked 11/6, 2014 at 11:13

2

Solved

The paper_trail gem tracks versions, and does a good job. However, there is one edge case I've been noticing. For most objects, the application controller sets whodunnit if you are logged in, and t...
Oswald asked 28/1, 2016 at 21:31

5

Solved

On my home page i display the latest updates using papertrail. Controller @contributions = PaperTrail::Version.all.order("created_at DESC") View <% @contributions.each do |v| %> <h2&...
Rheum asked 18/2, 2014 at 21:16

3

Solved

I am using paper_trail for audit trail. Along with create, update and delete events I want to track few custom events like view(record), sent(email) etc. How can we introduce such custom events whi...
Canute asked 24/3, 2012 at 12:34

1

I am migrating my application from Rails4.2.8 to Rails5.2.3, updated paper-trail gem version '7.1.2' to '10.3.1'.I am using Rspec - 3.8.2. Everything worked fine but my specs are failing for models...
Semite asked 6/8, 2019 at 13:17

3

I used paper_trail to tracking transnational changes when I migrated rails 3.2 to rails 4.2, have got below issue: NoMethodError - undefined method `timestamp_sort_order' for
Semitone asked 30/7, 2015 at 6:51

2

Solved

We just started using the PaperTrail gem and have noticed that 75% of the records in the versions table have nil for the object_changes column. Any idea why this would be happening and how we can s...
Receptionist asked 20/2, 2019 at 14:31

0

I'm using the paper_trail-association_tracking gem to save PaperTrail versions for AR associations. I have a model, let's call it User, that has many Groups and has many Skills. Both of these assoc...
Nucleon asked 22/10, 2019 at 18:49

4

I am using paper_trail for undo/redo functionality in my site and am having a problem when I call reify.save on a version in that on save and new PaperTrail::Version gets created. Is there a way t...
Lyrate asked 21/9, 2016 at 11:46

3

I have a spreadsheet of items which I convert to CSV and import using a custom import script into my Rails based application. The spreadsheet contains a row for each record but some rows hold diff...
Exothermic asked 6/1, 2015 at 18:0

3

Solved

I am using the gems Workflow, Paper Trail and Friend ID. To track the state changes using Paper Trail, I have overridden the persist_workflow_state to explicitly update the workflow column, so tha...
Irrefrangible asked 27/1, 2014 at 20:53

2

Solved

I'm having trouble with PaperTrail (auto-versioning of objects for Rails) being used with RSpec tests. Normally I want my tests to run without PaperTrail versioning, but there are a handful of test...
Gissing asked 8/10, 2013 at 19:39

1

Solved

I'm looking for something for NodeJS that is similar to the PaperTrail gem for rails. Something that will automatically help keep track of changes to different fields.
Escamilla asked 3/8, 2015 at 0:48

0

I'm using the paper_trail gem. My use case involves creating versions when I explicitly want to instead of on callbacks like on: [:update] or something. I did so by adding on: [] in my my_model.r...
Llewellyn asked 3/2, 2018 at 16:0

2

Background: We use PaperTrail to keep the history of our changing models. Now I want to query for a Item, which belonged to a certain customer. PaperTrail optionally stores the object_changes and I...

2

I am stuck. I've been trying to figure out how to include the association changes (has_many, has_many through) on a model that has papertrail. I would like to call MyModel.versions.first.changeset ...

0

Anyone know how to set the devise helper function #current_user in a controller test (using fixture data) for a Rails 5 app? I've tried the following: sign_in users(:example_user) @current_user ...
Biamonte asked 24/5, 2017 at 18:23

1

I'm using activerecord-import gem to import multiple ActiveRecord documents in single query. Then I'm initializing related associations using saved documents ids and importing them too, and so on. ...

2

I need to allow less-privileged users to propose changes to a record but have them sit somewhere until an administrator approves them. It should be similar to the way Stack Overflow allows users wi...
Saltwater asked 24/2, 2014 at 22:38

6

Solved

I have a model that use both: Carrierwave for store photos, and PaperTrail for versioning. I also configured Carrierwave for store diferent files when updates (That's because I want to version the...
Maintop asked 23/2, 2012 at 23:44

1

Solved

This is somewhat related to #837 in that I have a large data column on my models, however I think I may be better served by the opposite of what's proposed in that issue - that is, to maintain the ...
Gorden asked 22/11, 2016 at 18:48

5

So I setup Logstash 1.4.2 with ElasticSearch and Kibana using logstash-forwarder(lumberjack) and thats working pretty well but I also wanted to show just a raw log output(maybe searchable) via a br...
Vituperate asked 9/2, 2015 at 19:24

4

Solved

I'm using the paper_trail gem in my Rails 4 application and I want to set a default sort order. papertrail doesn't have a model, only a controller and an initializer. Where can I put it? Do I have...
Ardene asked 23/4, 2014 at 17:52

2

Solved

I am using the paper_trail gem for versioning my models. So far, my model depends on the info_for_paper_trail method in ApplicationController: class ApplicationController < ActionController::B...

© 2022 - 2024 — McMap. All rights reserved.