Coder Social home page Coder Social logo

Comments (6)

bombino avatar bombino commented on June 8, 2024

+1, this is affecting us in production as well. Downgrading to 0.1.8 is a successful workaround.

Here's another successful workaround (monkeypatch):

module ActiveRecord
  module Acts 
    module List
      module InstanceMethods
        def reload_position
          # noop, because of https://github.com/swanandp/acts_as_list/issues/118
        end
      end
    end
  end
end

This commit should be reverted:
f62c432

from acts_as_list.

swanandp avatar swanandp commented on June 8, 2024

PR #46 caused it, I am reviewing it now.

from acts_as_list.

lemonfrog avatar lemonfrog commented on June 8, 2024

+1 for bombinos suggestion.

from acts_as_list.

brendon avatar brendon commented on June 8, 2024

#201 should have fixed this one. We lock! doesn't reload if the record is no longer persisted (i.e. it's new or deleted).

from acts_as_list.

jaredmoody avatar jaredmoody commented on June 8, 2024

I'm experiencing this issue on v0.9.9 - e.g.

class Project
  has_many :tasks, dependent: :destroy
end

class Task
  acts_as_list scope: :project_id
end

Both project.destroy and project.tasks.destroy_all give me an ActiveRecord::RecordNotFound error when multiple tasks exist.

from acts_as_list.

brendon avatar brendon commented on June 8, 2024

Hi @jaredmoody, can you do a PR with a failing test case?

from acts_as_list.

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.