Module: Rad::Controller::Http::ClassMethods

Defined in:
lib/rad/controller/_http.rb

Instance Method Summary collapse

Instance Method Details

#allow_get_for(*methods) ⇒ Object



35
36
37
38
39
40
# File 'lib/rad/controller/_http.rb', line 35

def allow_get_for *methods
  methods = methods.first if methods.first.is_a? Array

  enable_protection_from_get_requests!
  actions_allowed_for_get_request.push *(methods.collect(&:to_sym))
end