Sha256: cb697b54115ccc2939a30667fcab9054fec0e1c1a75754981ede6b8e17c78967

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

module ActiveSupport #:nodoc:
  module CoreExtensions #:nodoc:
    module Array #:nodoc:
      module ToParam #:nodoc:
        # When an array is given to url_for, it is converted to a slash separated string.
        def to_param
          join '/'
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activesupport-1.1.0 lib/active_support/core_ext/array/to_param.rb
activesupport-1.1.1 lib/active_support/core_ext/array/to_param.rb