Sha256: f29b083d0b2ac68842db10592a18314bf4887373a830c9d433ec7fec907fefd1

Contents?: true

Size: 331 Bytes

Versions: 23

Compression:

Stored size: 331 Bytes

Contents

module Rhoconnect
  module Condition
    module Verbs
      def self.extended(base)
      	base.include_verbs_condition
      end

      def include_verbs_condition
        set(:verbs) do |*verbs|
          condition do
            verbs.any?{|v| v == request.request_method }
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 lib/rhoconnect/condition/verbs.rb
rhoconnect-7.5.1 lib/rhoconnect/condition/verbs.rb
rhoconnect-7.4.1 lib/rhoconnect/condition/verbs.rb
rhoconnect-7.1.17 lib/rhoconnect/condition/verbs.rb
rhoconnect-6.2.0 lib/rhoconnect/condition/verbs.rb
rhoconnect-6.0.11 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.18 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.17 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.15 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.0.22 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.2 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.0.7 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.0.3 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.5.0 lib/rhoconnect/condition/verbs.rb
rhoconnect-5.1.1 lib/rhoconnect/condition/verbs.rb
rhoconnect-4.0.4 lib/rhoconnect/condition/verbs.rb
rhoconnect-4.0.3 lib/rhoconnect/condition/verbs.rb
rhoconnect-4.0.2 lib/rhoconnect/condition/verbs.rb
rhoconnect-4.0.1 lib/rhoconnect/condition/verbs.rb
rhoconnect-4.0.0 lib/rhoconnect/condition/verbs.rb