custom_query_methods 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: bc64b0648c611ff7ad0381259e2fea3ddb9b489a39e3324605810ac969831036
4
- data.tar.gz: c88c5e6a7bdea34d97acaab7c20a74385e4e63b17ad05fd61aa97283ed8ab675
3
+ metadata.gz: 62183bb9d339ac0455b11809dd55785e8b72f34ca6fc4c60f04bb66ec5e2752e
4
+ data.tar.gz: d52dd72acd2006c06a39b88b4e99ca2de61b41c9ad4fd970dec6ff044622d249
5
5
  SHA512:
6
- metadata.gz: 63947c81538f5f3d797e8c7e2f165c99179f55210b513d4bfc75043e40aa9784be1076881db51d26237bc810924868a47303931162720f37525c8759623491bb
7
- data.tar.gz: 57c6144433a7630d1eb1399048230c826a3f60259265b5943b0536552a043fd391ea04a0af2c06123f2c2f2d0ea239252b0d7b3ee3e4aa306da170c6bc7fd28c
6
+ metadata.gz: 03fe6901bd2d4f4a3fdcf79a3e8edd9d97fc0ad0861021b6148f4e97ea688ad9f5a3bcef7f38c7783df46b704a917058689356c9bb37ba81f338f49a4a7f0b77
7
+ data.tar.gz: 75635494517167c6d7f8671b2f6ceb7dd224c80a9dcfbfdd3336f1854c7c803645d727b215dffe3c0b8dd1ca7b8d0e0c50c8ac58f6b2bdaac3a3b9a75c7e241a
Binary file
@@ -0,0 +1,9 @@
1
+ module CustomQueryMethods
2
+ module ActiveRecordExtension
3
+ def custom_where(*args)
4
+ def custom_where(*args)
5
+ where('name LIKE ?', "%#{args.first}%")
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module CustomQueryMethods
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - tsotne
@@ -53,8 +53,10 @@ files:
53
53
  - Rakefile
54
54
  - bin/console
55
55
  - bin/setup
56
+ - custom_query_methods-0.1.0.gem
56
57
  - custom_query_methods.gemspec
57
58
  - lib/custom_query_methods.rb
59
+ - lib/custom_query_methods/active_record_extension.rb
58
60
  - lib/custom_query_methods/version.rb
59
61
  homepage: http://example.com
60
62
  licenses: