Comments (6)
+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.
PR #46 caused it, I am reviewing it now.
from acts_as_list.
+1 for bombinos suggestion.
from acts_as_list.
#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.
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.
Hi @jaredmoody, can you do a PR with a failing test case?
from acts_as_list.
Related Issues (20)
- move_higher and move_lower do not respect sequential_updates=true HOT 1
- Cannot add position uniqueness index HOT 16
- [Question] Keep position nil for a specific scope HOT 7
- Reorder on delete? HOT 3
- Feature Request: Get first/last of scope HOT 2
- DEPRECATION WARNING: Class level methods will no longer inherit scoping from `create!` in Rails 6.1. HOT 3
- bundle console cannot be started once acts_as_list required HOT 7
- bug - usage of acts_as_list and counter_cache will break the after_touch callback HOT 2
- Require a scope to be present before re-ordering HOT 2
- `nil` Scope Condition Causes Loss of Scope HOT 2
- Tests for Ruby 2.7 and 3.0 HOT 3
- Is it possible to run callback for all updated records? HOT 3
- Limiting the list size HOT 1
- touch parent broken on destroy HOT 4
- Position cannot be lower than top issue HOT 4
- How to move an item to other scope at specific position HOT 3
- Attachments sorting / has_many_attached HOT 1
- Shifted records are not broadcast by Turbo Streams HOT 4
- How can I use act_as_list with a has_many_attached association (ActiveStorage, Rails 7) HOT 3
- Can I scope it based on a column in another table? HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acts_as_list.