dynamodb_record 0.3.2 → 0.3.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: ff1f6cbc3effd7b567e7c66363dd2dddea848006429196d971acbcaefa9b1018
4
- data.tar.gz: b7be712416dc40da67e96f3c137f73c51aa80f2de2c738b8573de42559761f91
3
+ metadata.gz: 24d59dadc67c9fe2d0d70b78c5cce8d1af52505f2b49f539ee1cb407be8bff13
4
+ data.tar.gz: c0de287ed037955f41ccfc29d497ca5299d1efff797a180edb819346b5c9a926
5
5
  SHA512:
6
- metadata.gz: f52e2040fed88166c5c769edc3aaf48b61a3158b001837d3a212e61045f78dfaa5b0b336044dbd7c4585c08aac143decf5058d51091ec34c0388edd9819e74a5
7
- data.tar.gz: bfb88f70eb5f81257a6c40c52cdde0686181325d62cb7d94c56e956fe3e6a5fa17d21001b1478b4a76a039fbf05168c3fef19a8e7ccf786cdca5c05fb3b6097a
6
+ metadata.gz: 775f99c88ba0aeab51b216cdb0950afc55ac61aec51703a6d406902b7572122299ad878b681332d48c0d554237d7871d520acd0b6e92b246a6e0c5c63a3f6899
7
+ data.tar.gz: 14257dc2a185a5fb18085d69ecf4b08e0166294c50c9c1fb3991828d252760a802a6d8e774608cec37f2af7a32b336c921d5c88b83e1cd69c01625537339675a
@@ -17,7 +17,7 @@ module DynamodbRecord
17
17
 
18
18
  # rubocop:disable Naming/PredicateName
19
19
  def has_many(associations)
20
- base_model = to_s.downcase
20
+ base_model = to_s.downcase.split('::').last
21
21
  model = associations.to_s.chop
22
22
 
23
23
  define_method(associations) do
@@ -36,7 +36,7 @@ module DynamodbRecord
36
36
  end
37
37
 
38
38
  def has_many_through(associations, table)
39
- base_model = to_s.downcase
39
+ base_model = to_s.downcase.split('::').last
40
40
  relation_model = associations.to_s.chop
41
41
  list = []
42
42
  list << base_model
@@ -69,7 +69,7 @@ module DynamodbRecord
69
69
  end
70
70
 
71
71
  def has_and_belongs_to_many(associations)
72
- base_model = to_s.downcase
72
+ base_model = to_s.downcase.split('::').last
73
73
  relation_model = associations.to_s.chop
74
74
  list = []
75
75
  list << base_model
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DynamodbRecord
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'bundler/setup'
3
4
  require 'securerandom'
4
5
  require 'active_support'
5
6
  require 'active_support/concern'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynamodb_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Guzman