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 scope_for_slug_generator
      scope = self.class.base_class.unscoped
      scope = scope.friendly unless scope.respond_to?(:exists_by_friendly_id?)
      primary_key_name = self.class.primary_key
      scope.where(self.class.base_class.arel_table[primary_key_name].not_eq(send(primary_key_name)))
    end
def scope_for_slug_generator scope = self . class . base_class . unscoped scope = scope . friendly unless scope . respond_to? ( :exists_by_friendly_id? ) primary_key_name = self . class . primary_key scope . where ( self . class . base_class . arel_table [ primary_key_name ] . not_eq ( send ( primary_key_name ) ) ) end
Sets up behavior and configuration options for FriendlyId's slugging
feature.
Sets up behavior and configuration options for FriendlyId ' s slugging feature .