magic_inquiries 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55723c6ba943936bfaf39bcbc4d8902fb819bd3b
4
- data.tar.gz: e3b5f1f8e2033a25f651ff353fdba17f9cdabd21
3
+ metadata.gz: 30c832d72680ca091748dd993cf89a68f6431985
4
+ data.tar.gz: 564230617a9f86c3687e693535f526764e8d83e6
5
5
  SHA512:
6
- metadata.gz: 7e195706aa2cf522de83d3fc39fc64703a953e5628c1ba9dff4d2c8ebca8ebef2acaa608604010db7f70ecd1cfe35422e9b1cbd10f0fcf55b88b7c61d7ab61dc
7
- data.tar.gz: 6a00388e9da07f35045cca2d92b614d527d3b11a9be49d9b18d55af4955664a47233ed59d92ac178027cf00ea1dbd0b789ff05b25d07c8d0657149b1521ab86a
6
+ metadata.gz: b23f1abedb1049e00688e528d48c2df532449bfdd999bc12901da60f3cb6c0d2ab9a90563b3c411e4faef738a675e147c8f1dba6e36fa47f5e769773c4c5e0bb
7
+ data.tar.gz: 875317fcb7f7f08d89dad719e5e819708119c143d66dfbb82e961fe2b544b21f8fe1cce1fd5a9af2576148229ab0472b85530e74c8a288993f646375a51f9c94
@@ -7,7 +7,11 @@ module MagicInquiries
7
7
 
8
8
  module ClassMethods
9
9
  def magic_includes(options = [])
10
- options = reflect_on_all_associations.map(&:name) if options.empty?
10
+ unless options
11
+ options = []
12
+ else
13
+ options = reflect_on_all_associations.map(&:name)
14
+ end
11
15
  default_scope { includes(options) }
12
16
  end
13
17
  end
@@ -1,3 +1,3 @@
1
1
  module MagicInquiries
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_inquiries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Henb
@@ -33,7 +33,6 @@ extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
35
  - MIT-LICENSE
36
- - README.rdoc
37
36
  - Rakefile
38
37
  - lib/magic_inquiries.rb
39
38
  - lib/magic_inquiries/includes.rb
@@ -64,3 +63,4 @@ signing_key:
64
63
  specification_version: 4
65
64
  summary: Helps to avoid N + 1 queries.
66
65
  test_files: []
66
+ has_rdoc:
data/README.rdoc DELETED
@@ -1,3 +0,0 @@
1
- = MagicInquiries
2
-
3
- This project rocks and uses MIT-LICENSE.