Sha256: 1f71c0bc1b70af565b3dceea5adb73143f25be83a28d5f73227efa7a769dc60b

Contents?: true

Size: 260 Bytes

Versions: 3

Compression:

Stored size: 260 Bytes

Contents

module Shutterbug
  module Handlers
    class ErrorTrigger

      def self.regex
        /#{Configuration.instance.path_prefix}\/error/
      end

      def handle(helper, req, env)
        raise "Forced exception: #{req}, #{env}"
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shutterbug-0.5.9 lib/shutterbug/handlers/error_trigger.rb
shutterbug-0.5.8 lib/shutterbug/handlers/error_trigger.rb
shutterbug-0.5.7 lib/shutterbug/handlers/error_trigger.rb