lib/rhoconnect/read_state.rb in rhoconnect-3.4.5 vs lib/rhoconnect/read_state.rb in rhoconnect-4.0.0.beta.10

- old
+ new

@@ -1,7 +1,7 @@ module Rhoconnect - class ReadState < Model + class ReadState < StoreOrm field :refresh_time, :integer field :prev_refresh_time, :integer field :retry_counter, :integer def self.create(fields) @@ -18,14 +18,14 @@ def self.load(params) super(get_id(params),{}) end def self.delete(app_id) - Store.flash_data("#{class_prefix(self)}:#{app_id}:*") + Store.flush_data("#{class_prefix(self)}:#{app_id}:*") end def self.delete_user(params) - Store.flash_data("#{class_prefix(self)}:#{params[:app_id]}:#{params[:user_id]}:#{params[:source_name]}:*") + Store.flush_data("#{class_prefix(self)}:#{params[:app_id]}:#{params[:user_id]}:#{params[:source_name]}:*") end private def self.get_id(params) "#{params[:app_id]}:#{params[:user_id]}:#{params[:source_name]}" \ No newline at end of file