lib/cache.rb
def save(data, system_num)
      latest_data = find(system_num)
      if latest_data != data
        save_new_revision(data, system_num)
        :updated
      else
        :unchanged
      end
    end
# If needed, saves +data+ to the cache.
# Will not save if data unchanged relative to the latest revision.
If needed, saves +data+ to the cache.
Will not save if data unchanged relative to the latest revision.
If needed saves + data + to the cache . Will not save if data unchanged relative to the latest revision .
def save(data, system_num)
      latest_data = find(system_num)
      if latest_data != data
        save_new_revision(data, system_num)
        :updated
      else
        :unchanged
      end
    end
def save ( data , system_num ) latest_data = find ( system_num ) if latest_data != data save_new_revision ( data , system_num ) :updated else :unchanged end end
If needed, saves +data+ to the cache.
If needed saves + data + to the cache .
data
system_num