lib/soapy_cake/admin.rb in soapy_cake-1.25.1 vs lib/soapy_cake/admin.rb in soapy_cake-1.25.2

- old
+ new

@@ -111,10 +111,10 @@ require_params(opts, %i(blacklist_date)) blacklist_date = opts[:blacklist_date].to_date # CAKE applies the blacklisting at 00:00 of the specified day, so add one more day. # Unless it is the current day, then blacklisting should take effect immediately. - blacklist_date += 1.day if blacklist_date > Date.today + blacklist_date += 1.day if blacklist_date > Date.current run Request.new( :admin, :addedit, :blacklist,