Sha256: e90f63a78baf528cf610a2cbbbbed41367e6c3e6d52920a2415ad65f5170c39b

Contents?: true

Size: 111 Bytes

Versions: 37

Compression:

Stored size: 111 Bytes

Contents

module Ddr::Models
  class UrlSafeId

    def self.call(obj)
      obj.id.gsub(/\//, "%2F")
    end

  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.7 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.6 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.5 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.4 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.3 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.2 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.1 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.rc6 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.rc5 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.rc4 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.rc3 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.rc2 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.rc1 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.beta.22 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.beta.21 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.beta.20 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.beta.18 lib/ddr/models/url_safe_id.rb
ddr-models-3.0.0.beta.17 lib/ddr/models/url_safe_id.rb