Memoization, duh
This commit is contained in:
parent
40cd218a5f
commit
cbbf909e7f
@ -4,8 +4,7 @@ module RemoteStorage
|
|||||||
module Riak
|
module Riak
|
||||||
|
|
||||||
def client
|
def client
|
||||||
return @client if @client
|
@client ||= ::Riak::Client.new(LiquorCabinet.config['riak'].symbolize_keys)
|
||||||
@client = ::Riak::Client.new(LiquorCabinet.config['riak'].symbolize_keys)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def authorize_request(user, category, token)
|
def authorize_request(user, category, token)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user