Sha256: 2c25ea5b23925e135dd32335c76b0d476530a5d47da7a02c59cf56cabdfaa1f2
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
require "mengpaneel/strategy/base" require "mengpaneel/delayer" module Mengpaneel module Strategy class Delayed < Base def run return false unless controller return false unless redirect? Delayer.new(controller).save(all_calls) true end private def redirect? (300...400).include?(controller.response.status) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mengpaneel-0.0.3 | lib/mengpaneel/strategy/delayed.rb |
mengpaneel-0.0.2 | lib/mengpaneel/strategy/delayed.rb |
mengpaneel-0.0.1 | lib/mengpaneel/strategy/delayed.rb |