Giter Site home page Giter Site logo

Comments (5)

zzak avatar zzak commented on June 27, 2024

@iffyuva Does this issue still affect you on the latest version?

from acts_as_paranoid.

iffyuva avatar iffyuva commented on June 27, 2024

@zzak you mean on rails 4.2.4 ?

from acts_as_paranoid.

zzak avatar zzak commented on June 27, 2024

@iffyuva The latest version of acts_as_paranoid: https://rubygems.org/gems/acts_as_paranoid/versions/0.5.0.beta2

from acts_as_paranoid.

zzak avatar zzak commented on June 27, 2024

In fact, this seems like the current behavior from what I can see by the tests:
https://github.com/ActsAsParanoid/acts_as_paranoid/blob/master/test/test_relations.rb#L112

For example:

@paranoid_forest_2.paranoid_trees.order(:id).delete_all!

and

@paranoid_forest_1.paranoid_trees.order(:id).destroy(paranoid_tree.id)

For whatever reason, we must do this.

You could simplify your code to just r.bookings.order(:id).delete_all, I believe.

So perhaps this could be improved in the documentation.

from acts_as_paranoid.

mvz avatar mvz commented on June 27, 2024

As far as I can tell this problem no longer occurs.

from acts_as_paranoid.

Related Issues (20)

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.