custom_query_methods 0.1.1 → 0.1.3

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
  SHA256:
3
- metadata.gz: 9016a951d173b2202fb8713fd29df520b92ca7f41c8a9ad09d3b03122d2e1b77
4
- data.tar.gz: a489f6546747a5b2f03715b626566488329acd283e98e789cb4b143c0cc0880e
3
+ metadata.gz: 8ae97b38a22f686833b0d231b6ecc8e9576a9f7bf68f7d07695f506bd0fd43ae
4
+ data.tar.gz: e52c9c053ccba3d7be965dd64cf3223db5abbc582e3d1bcce357de7abda81eeb
5
5
  SHA512:
6
- metadata.gz: 341c67e0b160417cfe85a3b4e60fa3bad36f1dbea99eb0ab674dfd4da07744d106075da223e24b2ac8257a85da400878ecdfa208a1341efc004138789415aa94
7
- data.tar.gz: 4fd4f32d7abb35cd4e8233198a82fc36896188948f19090a7c068327ec06613e38e7b19d60a9daf9e7c2aab43b7e20a1f94809877932ce97b333d1386552a1ba
6
+ metadata.gz: 648f690f16240ef20abc62e24d451892455c70fd890628a8d8b132dbbebbb767277cf1120af0eafd21c40b4f586a9619f8c31af3b7362b68ffb6474d1f8f22d8
7
+ data.tar.gz: b57534088d533e04144238ae5eb996ecbb56aa07cdd6c9d46bed2b3956f57036df070f38210e591f49a69ba9ca3567a30a96d729371caebebde22b961f79d35c
Binary file
Binary file
@@ -0,0 +1,11 @@
1
+ require 'custom_query_methods/active_record_extension'
2
+
3
+ module CustomQueryMethods
4
+ class Railtie < Rails::Railtie
5
+ initializer 'custom_query_methods.include_in_active_record' do
6
+ ActiveSupport.on_load :active_record do
7
+ ActiveRecord::Base.extend CustomQueryMethods::ActiveRecordExtension
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module CustomQueryMethods
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require "custom_query_methods/version"
2
2
  require "custom_query_methods/active_record_extension"
3
+ require 'custom_query_methods/railtie'
3
4
 
4
5
  module CustomQueryMethods
5
6
  ActiveRecord::QueryMethods.include ActiveRecordExtension
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_query_methods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - tsotne
@@ -54,9 +54,12 @@ files:
54
54
  - bin/console
55
55
  - bin/setup
56
56
  - custom_query_methods-0.1.0.gem
57
+ - custom_query_methods-0.1.1.gem
58
+ - custom_query_methods-0.1.2.gem
57
59
  - custom_query_methods.gemspec
58
60
  - lib/custom_query_methods.rb
59
61
  - lib/custom_query_methods/active_record_extension.rb
62
+ - lib/custom_query_methods/railtie.rb
60
63
  - lib/custom_query_methods/version.rb
61
64
  homepage: http://example.com
62
65
  licenses: