Giter Site home page Giter Site logo

acts_as_versioned's Introduction

ActsAsVersioned Decisiv

A fork of Rick Olson’s ActsAsVersioned plugin that has been gem’ized along with a few features I need. This library adds simple versioning to an ActiveRecord class which of course requires ActiveRecord for use.

Has tests for many DBs in ActiveRecord version 2.2.2

Resources

Bundle up.

gem 'acts_as_versioned-decisiv', :require => 'acts_as_versioned'

acts_as_versioned's People

Contributors

metaskills avatar technoweenie avatar josh avatar asacalow avatar ngocdaothanh avatar tjchambers avatar tinynumbers avatar thibaudgg avatar pelle avatar

Stargazers

Angus H. avatar Brian avatar Brennan Dunn avatar Don Sawtelle avatar

Watchers

George F Murphy avatar David Rees avatar  avatar James Cloos avatar  avatar  avatar

Forkers

abhisheksunkuru

acts_as_versioned's Issues

Does not Save in versions Table before Destroy

when i put before destroy call back for save version it is not able save in the versio9ns table of model.i think it is bug.how can i use this save version with before destroy call back?

Rails 4+ compatibility

As I'm working through Rails compatibility for this gem I've run into a some issues around Rails 4+ compatibility. For example:

class Widget < ActiveRecord::Base
acts_as_versioned :sequence_name => 'widgets_seq', :association_options => {
:dependent => :nullify, :order => 'version desc'

association_options has :order in it. Which works fine in Rails 3.2, but doesn't work beyond Rails 4.0.

Based on a project search there is no usage of this feature with :order or other options that are now required in a scope. I would recommend to reject any keys that are not supported in Rails 4 and beyond, but I do not know the usage of this gem outside of those two apps.

Also don't know how important of a feature this is to the apps. If it is important i would recommend taking more time at some point to remove all the unused features or move to something like PaperTrail.

Let me know how you want me to proceed.

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.