Module: FriendlyId

Defined in:
lib/friendly_id.rb,
lib/friendly_id/test.rb,
lib/friendly_id/status.rb,
lib/friendly_id/railtie.rb,
lib/friendly_id/slugged.rb,
lib/friendly_id/version.rb,
lib/friendly_id/slug_string.rb,
lib/friendly_id/active_record.rb,
lib/friendly_id/configuration.rb,
lib/friendly_id/active_record_adapter/tasks.rb,
lib/friendly_id/active_record_adapter/finders.rb,
lib/friendly_id/active_record_adapter/relation.rb,
lib/friendly_id/active_record_adapter/simple_model.rb,
lib/friendly_id/active_record_adapter/configuration.rb,
lib/friendly_id/active_record_adapter/slugged_model.rb

Overview

FriendlyId is a comprehensive Ruby library for slugging and permalinks with ActiveRecord.

Author:

  • Norman Clarke

  • Emilio Tagua

  • Adrian Mugnolo

Defined Under Namespace

Modules: ActiveRecordAdapter, Base, Slugged, Test, Version Classes: BlankError, Configuration, Railtie, ReservedError, SlugGenerationError, SlugString, Status, TaskRunner

Class Method Summary collapse

Class Method Details

.on_ar3?Boolean

Are we running on ActiveRecord 3 or higher?

Returns:

  • (Boolean)


4
5
6
# File 'lib/friendly_id/active_record.rb', line 4

def self.on_ar3?
  ActiveRecord::VERSION::STRING >= "3"
end