lib/friendly_id/slugged.rb
# Sets up behavior and configuration options for FriendlyId's slugging
# feature.
Sets up behavior and configuration options for FriendlyId's slugging
feature.
Sets up behavior and configuration options for FriendlyId ' s slugging feature .
def unset_slug_if_invalid
      if errors.key?(friendly_id_config.query_field) && attribute_changed?(friendly_id_config.query_field.to_s)
        diff = changes[friendly_id_config.query_field]
        send "#{friendly_id_config.slug_column}=", diff.first
      end
    end
def unset_slug_if_invalid if errors . key? ( friendly_id_config . query_field ) && attribute_changed? ( friendly_id_config . query_field . to_s ) diff = changes [ friendly_id_config . query_field ] send "#{friendly_id_config.slug_column}=" , diff . first end end
Sets up behavior and configuration options for FriendlyId's slugging
feature.
Sets up behavior and configuration options for FriendlyId ' s slugging feature .