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.
Files changed (2) hide show
  1. data/lib/simple_record.rb +2 -1
  2. 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.4'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder