From 2ef88d65200a75e8536185aed893bc5d52de52c1 Mon Sep 17 00:00:00 2001 From: Dale Campbell Date: Wed, 24 Jul 2013 02:01:05 -0400 Subject: [PATCH] Reload data after creating new row. Issue #27 --- lib/app_config/storage/postgres.rb | 2 ++ lib/app_config/version.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/app_config/storage/postgres.rb b/lib/app_config/storage/postgres.rb index 1f6a411..99cfd30 100644 --- a/lib/app_config/storage/postgres.rb +++ b/lib/app_config/storage/postgres.rb @@ -60,6 +60,8 @@ def save! @connection.exec("SELECT id FROM #{@table}") do |result| result.each { |row| @id = row['id'] } end + + fetch_data! end true diff --git a/lib/app_config/version.rb b/lib/app_config/version.rb index 9ac2a7b..9a5bf95 100644 --- a/lib/app_config/version.rb +++ b/lib/app_config/version.rb @@ -1,3 +1,3 @@ module AppConfig - VERSION = '2.1.6' + VERSION = '2.1.7' end