Module: Crystal::HttpController::ClassMethods

Defined in:
lib/crystal/controller/http_controller.rb

Instance Method Summary collapse

Instance Method Details

#allow_get_for(*methods) ⇒ Object



25
26
27
28
# File 'lib/crystal/controller/http_controller.rb', line 25

def allow_get_for *methods
  enable_protection_from_get_requests!        
  actions_allowed_for_get_request.push *methods.collect(&:to_s)
end