module FriendlyId::ActiveRecord2::SluggedModel::SluggedFinder

Public Instance Methods

handle_friendly_result() click to toggle source
# File lib/friendly_id/active_record2/slugged_model.rb, line 11
def handle_friendly_result
  raise ::ActiveRecord::RecordNotFound.new unless @result
  @result.friendly_id_status.friendly_id = id
end
slugs_included?() click to toggle source

Whether :include => :slugs has been passed as an option.

# File lib/friendly_id/active_record2/slugged_model.rb, line 7
def slugs_included?
  [*(options[:include] or [])].flatten.include?(:slugs)
end