lib/kredis/attributes.rb in kredis-0.4.0 vs lib/kredis/attributes.rb in kredis-1.0.0
- old
+ new
@@ -20,11 +20,11 @@
def kredis_datetime(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
end
- def kredis_flag(name, key: nil, config: :shared, after_change: nil)
- kredis_connection_with __method__, name, key, config: config, after_change: after_change
+ def kredis_flag(name, key: nil, config: :shared, after_change: nil, expires_in: nil)
+ kredis_connection_with __method__, name, key, config: config, after_change: after_change, expires_in: expires_in
define_method("#{name}?") do
send(name).marked?
end
end