-
Is there a way to get a hold of changes from acts_as_taggable in the after_commit callback? Rails provides the previous_changes Hash for ActiveRecord object and was just wondering if acts-as-taggable …
-
### Steps to reproduce
https://gist.github.com/thomasfedb/04ca6b5d476679e6550d4b849531cf42
```ruby
class Post < ActiveRecord::Base
has_many :taggings
has_many :tags, through: :taggings
end…
-
Hello we are trying to write an ability for a model which accepts_nested_attributes.
And I was wondering if CanCanCan can do this.
Our check is simple:
`parent: { nested: { user_id: user.id}}}`…
hidr0 updated
4 months ago
-
If I use eager_load for 3 different objects `Person`,`Group`,`Organization` like this:
```
Person.eager_load(group: organization).where({ organizations: { name: 'XXX' } }).all_json
```
The end…
-
The benchmarks use underlying models that are fundamentally different. The models used by `fast_jsonapi` in the benchmarks are plain Ruby classes, whereas the models used in the `ams` parts of the ben…
-
### Steps to reproduce
1. I have a Model named Project and a class method in project.rb called 'set_new_project'.
def self.set_new_project
Project.new
end
2. run the 'where' query on Projec…
-
Background: A table named **people** with columns **format** and **name**, along with a corresponding ActiveRecord model and a sample row in the table.
STR:
1) Open up rails console and execute `Rail…
-
Source: http://stackoverflow.com/questions/31535545/threading-error-when-using-activerecord-with-connection-do-puma , https://github.com/puma/puma/issues/758
**Summary:** When using Puma and running…
-
### Background
Brakeman version: 5.0.0
Rails version: 5.2.4.5
Ruby version: 2.6.5p114
Link to Rails application code: (not public)
#### False Positive
##### *Full* warning from Brakeman:…
-
### Expected behaviour
Sidekiq job succeeds.
### Actual behaviour
Sidekiq job failed with `ActiveRecord::RecordInvalid: Validation failed: Username has already been taken`.
Its arguments a…