Module: Rhoconnect::Condition::Verbs
- Included in:
- Server
- Defined in:
- lib/rhoconnect/condition/verbs.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
4 5 6 |
# File 'lib/rhoconnect/condition/verbs.rb', line 4 def self.extended(base) base.include_verbs_condition end |
Instance Method Details
#include_verbs_condition ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rhoconnect/condition/verbs.rb', line 8 def include_verbs_condition set(:verbs) do |*verbs| condition do verbs.any?{|v| v == request.request_method } end end end |