Git Product home page Git Product logo

mm-versionable's Issues

gem release

Hi there, could you release an updated gem please? I'm linking to my git repo right now and the warnings with the current gem might throw off one or the other new user.

Does not support passing updater_id for update_attributes

In the documentation you say that if an "updater_id" option is passed with calls to the save method, it will be stored along with the version. I've been attempting to implement this in my controllers such that the user making the change is always saved with the version data. This is simple for my create methods, because I can just add the user option along with the call to save. For update it's slightly more difficult however as updates make a call to update_attributes.

As a temporary hack, I have changed the @object.update_attributes section of my controllers to:

(@object.attributes = params[:object] and @object.save :updater_id => current_user) 

Would overriding update_attributes as you have overridden save be an option? Or is there a better solution that you see?

version removal feature request

Would it be possible to add version removal? I'm going back and forth between versions in my model and doing so is messy because new versions will be put on top of rolled back versions so I basically have to keep track on valid and invalid versions of my model.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.