Class: UrlRewrite

Inherits:
ApplicationRecord show all
Defined in:
app/models/url_rewrite.rb

Instance Method Summary collapse

Instance Method Details

#titleObject



22
23
24
# File 'app/models/url_rewrite.rb', line 22

def title
  from.delete_prefix("/")
end

#to_sObject



14
15
16
# File 'app/models/url_rewrite.rb', line 14

def to_s
  "#{from} -> #{to}"
end