Permalink
Browse files

Merge branch '0.3'

  • Loading branch information...
2 parents 287d8c6 + 6dd0c1e commit b89a6016d601edd9a0ea7d1f193b4d8be9f1db98 @JonathanTron JonathanTron committed Nov 30, 2011
Showing with 5 additions and 2 deletions.
  1. +4 −1 lib/sequel/plugins/bitemporal.rb
  2. +1 −1 sequel_bitemporal.gemspec
@@ -123,7 +123,10 @@ def attributes
def attributes=(attributes)
if !new? && attributes.delete(:partial_update) && current_version
- current_attributes = current_version.values.dup
+ current_attributes = current_version.keys.inject({}) do |hash, key|
+ hash[key] = current_version.send key
+ hash
+ end
current_attributes.delete :valid_from
current_attributes.delete :valid_to
attributes = current_attributes.merge attributes
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "sequel_bitemporal"
- s.version = "0.3.0"
+ s.version = "0.3.1"
s.authors = ["Joseph HALTER", "Jonathan TRON"]
s.email = ["joseph.halter@thetalentbox.com", "jonathan.tron@thetalentbox.com"]
s.homepage = "https://github.com/TalentBox/sequel_bitemporal"

0 comments on commit b89a601

Please sign in to comment.