typo
parent
9967ebb2bc
commit
835e97abfa
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
### Updates
|
### Updates
|
||||||
|
|
||||||
- Update Rails to 2.6.5;
|
- Update Ruby to 2.6.5;
|
||||||
- Update Activerecord to the last version;
|
- Update Activerecord to the last version;
|
||||||
|
|
||||||
## v0.8.0
|
## v0.8.0
|
||||||
|
|
|
@ -345,7 +345,7 @@ If you need to warm up a record with scope, you need to setup the `scoping` rela
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class Resource < ApplicationRecord
|
class Resource < ApplicationRecord
|
||||||
voting scoping: :categories
|
rating scoping: :categories
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@ RSpec.describe Rating::Extension, 'unscoped_rating' do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when is true and have a non scopeable record first on dabase' do
|
context 'when is true and have a non scopeable record first on database' do
|
||||||
let!(:resource) { create :global }
|
let!(:resource) { create :global }
|
||||||
|
|
||||||
before { ::Rating::Rating.create resource: resource, scopeable: scope }
|
before { ::Rating::Rating.create resource: resource, scopeable: scope }
|
||||||
|
|
Loading…
Reference in New Issue