File: //usr/local/rvm/gems/ruby-2.7.4/doc/activemodel-6.1.4.1/ri/ActiveModel/Conversion/to_param-i.ri
U:RDoc::AnyMethod[iI"
to_param:ETI"%ActiveModel::Conversion#to_param;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns a +string+ representing the object's key suitable for use in URLs, ;TI"0or +nil+ if <tt>persisted?</tt> is +false+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Person
;TI"' include ActiveModel::Conversion
;TI" attr_accessor :id
;TI"
;TI" def initialize(id)
;TI" @id = id
;TI" end
;TI"
;TI" def persisted?
;TI" true
;TI" end
;TI" end
;TI"
;TI"person = Person.new(1)
;TI"person.to_param # => "1";T:@format0:
@fileI"#lib/active_model/conversion.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@!FI"Conversion;TcRDoc::NormalModule00