main
Washington Botelho 2019-12-19 13:58:12 -03:00
parent 9967ebb2bc
commit 835e97abfa
No known key found for this signature in database
GPG Key ID: 5DE4F42A8F073617
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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
``` ```

View File

@ -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 }