Skip to content

Commit 1203b4f

Browse files
committed
Fix keywords bug
1 parent c64fa2e commit 1203b4f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
mongoid_includes (1.0.0)
4+
mongoid_includes (0.0.1)
55
mongoid (>= 3.1.0, < 5.0.0)
66

77
GEM

lib/mongoid/includes/inclusion.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class Inclusion < SimpleDelegator
77
alias_method :metadata, :__getobj__
88
attr_reader :from
99

10-
def initialize(metadata, from: nil, loader: nil)
10+
def initialize(metadata, from: nil, loader: nil, **options)
1111
super(metadata)
12-
@from, @loader = from, loader
12+
@from, @loader, @options = from, loader, options
1313
end
1414

1515
# Public: Returns true if the relation is not direct.

mongoid_includes.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = 'mongoid_includes'
3-
s.version = '0.0.1'
3+
s.version = '1.0.0'
44
s.licenses = ['MIT']
55
s.summary = 'Improved eager loading support for Mongoid.'
66
s.description = 'Mongoid::Includes improves eager loading in Mongoid, supporting polymorphic associations, and up to two-levels of eager loading.'

0 commit comments

Comments
 (0)