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 +4 -4
- data/lib/price_log/version.rb +1 -1
- data/lib/price_log.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c368582d60ba81c54127bc514dea6caff7fe7d7d
|
4
|
+
data.tar.gz: 3e03e0f661c4c1356637f863cf1951ee9819ef8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b2429023673ee08bd0a61238b3b0b1efa3a7141345878a74150c77434bbfa6c9ff1fd6b83a700694a015c9caf1ca8b671f4e21a5d29c139557148891c0a0f19
|
7
|
+
data.tar.gz: d01c142b4a7326b12c4cbec3fd9b053f2c294fda57fa200b54aee6b89f7bde2b96266d574dbba16bfd0f28862d417833ebd0c26361e88e084283b83744e702e7
|
data/lib/price_log/version.rb
CHANGED
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
|
|