This module adds the `:slug_column`, and `:slug_limit`, and `:sequence_separator`, and `:slug_generator_class` configuration options to {FriendlyId::Configuration FriendlyId::Configuration}.
Makes FriendlyId use the slug column for querying. @return String The slug column.
# File lib/friendly_id/slugged.rb, line 393 def query_field slug_column end
The string used to separate a slug base from a numeric sequence.
You can change the default separator by setting the {FriendlyId::Slugged::Configuration#sequence_separator #sequence_separator} configuration option. @return String The sequence separator string. Defaults to “`-`”.
# File lib/friendly_id/slugged.rb, line 403 def sequence_separator @sequence_separator ||= defaults[:sequence_separator] end
The column that will be used to store the generated slug.
# File lib/friendly_id/slugged.rb, line 408 def slug_column @slug_column ||= defaults[:slug_column] end
The limit that will be used for slug.
# File lib/friendly_id/slugged.rb, line 413 def slug_limit @slug_limit ||= defaults[:slug_limit] end