simple_record 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_record.rb +2 -1
- metadata +1 -1
data/lib/simple_record.rb
CHANGED
@@ -29,7 +29,7 @@ require 'local_cache'
|
|
29
29
|
|
30
30
|
module SimpleRecord
|
31
31
|
|
32
|
-
VERSION = '1.0.
|
32
|
+
VERSION = '1.0.5'
|
33
33
|
|
34
34
|
class Base < RightAws::ActiveSdb::Base
|
35
35
|
|
@@ -386,6 +386,7 @@ VERSION = '1.0.4'
|
|
386
386
|
|
387
387
|
def save(*params)
|
388
388
|
# puts 'SAVING: ' + self.inspect
|
389
|
+
is_create = self[:id].nil?
|
389
390
|
ok = pre_save(*params)
|
390
391
|
if ok
|
391
392
|
begin
|