Method: Connect::Dsl#to_param
- Defined in:
- lib/connect/dsl.rb
#to_param(parameters) ⇒ Object
Translate strings in a set of parameters to quoted strings
312 313 314 315 |
# File 'lib/connect/dsl.rb', line 312 def to_param(parameters) parameters = [parameters] unless parameters.is_a?(Array) parameters.collect { |p| p.is_a?(String) ? "'#{p}'" : p }.join(',') end |