forked from e621ng/e621ng
[Misc] Fix redis/keyword param deprecation warning
This commit is contained in:
parent
d4d37a7cd2
commit
bf761e9352
@ -90,9 +90,9 @@ module ApplicationHelper
|
||||
def format_text(text, **options)
|
||||
# preserve the currrent inline behaviour
|
||||
if options[:inline]
|
||||
dtext_ragel(text, options)
|
||||
dtext_ragel(text, **options)
|
||||
else
|
||||
raw %(<div class="styled-dtext">#{dtext_ragel(text, options)}</div>)
|
||||
raw %(<div class="styled-dtext">#{dtext_ragel(text, **options)}</div>)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -47,9 +47,9 @@ class UserThrottle
|
||||
def hit!
|
||||
t = Time.now
|
||||
ckey = current_key(t)
|
||||
redis_client.multi do
|
||||
redis_client.incr(ckey)
|
||||
redis_client.expire(ckey, cache_duration.minutes)
|
||||
redis_client.multi do |transaction|
|
||||
transaction.incr(ckey)
|
||||
transaction.expire(ckey, cache_duration.minutes)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user