Sha256: 8fe5732e38f6cdff434e4e99ead2836321d6d702798a85ee9feb92cf77c52514

Contents?: true

Size: 196 Bytes

Versions: 3

Compression:

Stored size: 196 Bytes

Contents

# frozen_string_literal: true

require "active_record"
require "encoded_id"

module EncodedId
  module Rails
    module PathParam
      def to_param
        encoded_id
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
encoded_id-rails-0.6.2 lib/encoded_id/rails/path_param.rb
encoded_id-rails-0.6.1 lib/encoded_id/rails/path_param.rb
encoded_id-rails-0.6.0 lib/encoded_id/rails/path_param.rb