Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Get constant relative to Responders.

  • Loading branch information...
commit 3a97095dbb19316abcc70f55304d05eda69c22bc 1 parent 3af1895
@josevalim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/responders/controller_method.rb
View
2  lib/responders/controller_method.rb
@@ -22,7 +22,7 @@ def responders(*responders)
when Module
responder
when String, Symbol
- const_get("#{responder.to_s.classify}Responder")
+ Responders.const_get("#{responder.to_s.classify}Responder")
else
raise "responder has to be a string, a symbol or a module"
end
Please sign in to comment.
Something went wrong with that request. Please try again.