simple_record 1.1.27 → 1.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/simple_record.rb +1 -0
  2. metadata +2 -2
data/lib/simple_record.rb CHANGED
@@ -606,6 +606,7 @@ module SimpleRecord
606
606
  begin
607
607
  # puts 'is frozen? ' + self.frozen?.to_s + ' - ' + self.inspect
608
608
  if options[:dirty] # Only used in simple_record right now
609
+ return true if @dirty.size == 0 # Nothing to save so skip it
609
610
  options[:dirty_atts] = @dirty
610
611
  end
611
612
  to_delete = get_atts_to_delete # todo: this should use the @dirty hash now
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.1.27
4
+ version: 1.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-11-04 00:00:00 -08:00
14
+ date: 2009-11-05 00:00:00 -08:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency