price_log 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a881a8b2c0ffe65cc7b201957da81e14d293640
4
- data.tar.gz: 27e94436e195f42fd76438802371c0929de95d81
3
+ metadata.gz: c368582d60ba81c54127bc514dea6caff7fe7d7d
4
+ data.tar.gz: 3e03e0f661c4c1356637f863cf1951ee9819ef8c
5
5
  SHA512:
6
- metadata.gz: 17138ad7e7fbfb217cff746465a52ec313cfbcf2ba2b7c62c970582d2a02260b070f01244d6f5340789f90bc39be73bb179229de7edce96bb250d05d8ef2b15a
7
- data.tar.gz: 224d32f4c6b182d8dc86c7abd20e007770ed724f75a7817e8d15de535f5570bbe7ecdf68df144947c36b19dc921bf6022571db46c0d93af0c0a7ecfbea533377
6
+ metadata.gz: 9b2429023673ee08bd0a61238b3b0b1efa3a7141345878a74150c77434bbfa6c9ff1fd6b83a700694a015c9caf1ca8b671f4e21a5d29c139557148891c0a0f19
7
+ data.tar.gz: d01c142b4a7326b12c4cbec3fd9b053f2c294fda57fa200b54aee6b89f7bde2b96266d574dbba16bfd0f28862d417833ebd0c26361e88e084283b83744e702e7
@@ -1,3 +1,3 @@
1
1
  module PriceLog
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/price_log.rb CHANGED
@@ -37,7 +37,7 @@ module PriceLog
37
37
  end
38
38
 
39
39
  def #{_field_name_}=(amount)
40
- ple = PriceLogEntry.new(price: amount, start_date: DateTime.now, priceable_field_name: '#{_field_name_}')
40
+ ple = PriceLogEntry.new(priceable: self, price: amount, start_date: DateTime.now, priceable_field_name: '#{_field_name_}')
41
41
  self.#{_relation_name_} << ple
42
42
  end
43
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: price_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrzej Liśkiewicz