From a58b72f6af9cc7a2d3826b2b7a5c4572355fccc3 Mon Sep 17 00:00:00 2001 From: David Wilkie Date: Wed, 9 Oct 2024 20:44:42 +0700 Subject: [PATCH] fix: Simplify Reload API --- Gemfile.lock | 2 +- lib/rate_center/collection.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 2e29713..4bc56f6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rate_center (0.1.4) + rate_center (0.1.5) GEM remote: https://rubygems.org/ diff --git a/lib/rate_center/collection.rb b/lib/rate_center/collection.rb index 8d1a639..02934fd 100644 --- a/lib/rate_center/collection.rb +++ b/lib/rate_center/collection.rb @@ -7,7 +7,7 @@ def collection end def reload! - @collection = load_collection + @collection = nil end def all