Skip to content

Commit

Permalink
Doc save_rates and code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
spk committed Oct 22, 2014
1 parent 07e6efb commit a951b7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.markdown
Expand Up @@ -16,6 +16,8 @@ moe.update_rates
# set the seconds after than the current rates are automatically expired
# by default, they never expire
moe.ttl_in_seconds = 86400
# Store in cache
moe.save_rates

Money.default_bank = moe
~~~
Expand Down
4 changes: 0 additions & 4 deletions lib/money/bank/open_exchange_rates_bank.rb
Expand Up @@ -64,8 +64,6 @@ def store_in_cache(text)
open(cache, 'w') do |f|
f.write(text)
end
else
nil
end
end

Expand All @@ -74,8 +72,6 @@ def read_from_cache
cache.call(nil)
elsif cache.is_a?(String) && File.exist?(cache)
open(cache).read
else
nil
end
end

Expand Down

0 comments on commit a951b7d

Please sign in to comment.