live_record 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/app/assets/javascripts/live_record/model/create.coffee +1 -1
- data/lib/live_record/version.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: '09689222ba6751a8e3dbeee86e5a1b650efbcad5'
|
4
|
+
data.tar.gz: 475e74270ad477bc58bbc426b315a0d5c3154b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfdbaeb4e262ed2cd2c8ae08ef501217cdeca8e7e280e0c251bdea881a9ce1255fbb3e02c39d1cb11c4c66969105d4e47eb02c0967aae33494e2ebc8375b4d60
|
7
|
+
data.tar.gz: 9117d8f61628a0839862f93e15bb73bbee42ee65ca5e96a60f18e6a7fa7129477fa11e8c4e3c5aa64c4d3f382c9e9aa7b23b58ef0654f964094b21e2e393fd0b
|
data/README.md
CHANGED
@@ -117,7 +117,7 @@
|
|
117
117
|
1. Add the following to your `Gemfile`:
|
118
118
|
|
119
119
|
```ruby
|
120
|
-
gem 'live_record', '~> 0.2.
|
120
|
+
gem 'live_record', '~> 0.2.6'
|
121
121
|
```
|
122
122
|
|
123
123
|
2. Run:
|
@@ -610,6 +610,8 @@
|
|
610
610
|
* MIT
|
611
611
|
|
612
612
|
## Changelog
|
613
|
+
* 0.2.6
|
614
|
+
* fixed minor bug where `MODELINSTANCE.changes` do not accurately work on NULL values.
|
613
615
|
* 0.2.5
|
614
616
|
* fixed a major bug where same-model record instances were all sharing the same `@_callbacks` object, which then effectively calling also callbacks not specifically defined just for a specific record instance.
|
615
617
|
* 0.2.4
|
@@ -288,7 +288,7 @@ LiveRecord.Model.create = (config) ->
|
|
288
288
|
@changes = {}
|
289
289
|
|
290
290
|
for attributeName, attributeValue of attributes
|
291
|
-
unless @attributes[attributeName]
|
291
|
+
unless @attributes[attributeName] == attributeValue
|
292
292
|
@changes[attributeName] = [@attributes[attributeName], attributeValue]
|
293
293
|
|
294
294
|
Model.prototype._unsetChanges = () ->
|
data/lib/live_record/version.rb
CHANGED