Module: Permalinkable::InstanceMethods

Defined in:
lib/permalinkable/permalinkable.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject



31
32
33
34
# File 'lib/permalinkable/permalinkable.rb', line 31

def to_param
  existing_permalink = send(permalink_options[:permalink_field_name])
  (existing_permalink.present? && existing_permalink) || id.to_s
end