Module: Permalinkable::InstanceMethods
- Defined in:
- lib/permalinkable/permalinkable.rb
Instance Method Summary collapse
Instance Method Details
#to_param ⇒ Object
31 32 33 34 |
# File 'lib/permalinkable/permalinkable.rb', line 31 def to_param existing_permalink = send([:permalink_field_name]) (existing_permalink.present? && existing_permalink) || id.to_s end |