lib/friendly_id/base.rb
# Either the friendly_id, or the numeric id cast to a string.
Either the friendly_id, or the numeric id cast to a string.
Either the friendly_id or the numeric id cast to a string .
def to_param
      if friendly_id_config.routes == :friendly
        friendly_id.presence.to_param || super
      else
        super
      end
    end
def to_param if friendly_id_config . routes == :friendly friendly_id . presence . to_param || super else super end end
Either the friendly_id, or the numeric id cast to a string.
Either the friendly_id or the numeric id cast to a string .