Sha256: ab4d89d36101bbc2fb4871885e0ddb2727c0ee20d9d751a5e82e161d88ffd372
Contents?: true
Size: 502 Bytes
Versions: 3
Compression:
Stored size: 502 Bytes
Contents
class Object # Alias of <tt>to_s</tt>. def to_param to_s end end class NilClass # Returns +self+. def to_param self end end class TrueClass # Returns +self+. def to_param self end end class FalseClass # Returns +self+. def to_param self end end class Array # Calls <tt>to_param</tt> on all its elements and joins the result with # slashes. This is used by <tt>url_for</tt> in Action Pack. def to_param collect { |e| e.to_param }.join '/' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
motion-support-1.2.1 | motion/core_ext/object/to_param.rb |
motion-support-1.1.1 | motion/core_ext/object/to_param.rb |
motion-support-1.2.0 | motion/core_ext/object/to_param.rb |