Skip to content

Commit

Permalink
Support ruby 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Aug 27, 2020
1 parent c2878e1 commit 54b1aff
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -14,3 +14,4 @@ Gemfile.local

# Ignore Appraisal related files
gemfiles/*.gemfile.lock
.ruby-version
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -11,6 +11,7 @@ rvm:
- 2.4
- 2.5
- 2.6
- 2.7
- ruby-head

gemfile:
Expand Down Expand Up @@ -67,6 +68,9 @@ matrix:
- rvm: 2.4
gemfile: gemfiles/railsmaster.gemfile

- rvm: 2.7
gemfile: gemfiles/rails_4_2.gemfile

include:
- rvm: 2.6
gemfile: gemfiles/rails_5_0.gemfile
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@

## master

- [PR [#25](https://github.com/DmitryTsepelev/ar_lazy_preload/pull/25)] Ruby 2.7 support ([@DmitryTsepelev][])

## 0.4.0 (2020-08-24)

- [PR [#36](https://github.com/DmitryTsepelev/ar_lazy_preload/pull/36)] Feature preload_associations_lazily, allow turn on automatic preload only for given ActiveRecord::Relation ([@mpospelov][])
Expand Down
4 changes: 2 additions & 2 deletions lib/ar_lazy_preload/associated_context_builder.rb
Expand Up @@ -8,8 +8,8 @@ module ArLazyPreload
# the associated records based on the parent association tree.
class AssociatedContextBuilder
# Initiates lazy preload context the records loaded lazily
def self.prepare(*args)
new(*args).perform
def self.prepare(**args)
new(**args).perform
end

attr_reader :parent_context, :association_name
Expand Down

0 comments on commit 54b1aff

Please sign in to comment.