Sha256: c4c3fc72f497e12a23ba4c6f09f5ed01888c5195ad51bc86491cabca505a5e46

Contents?: true

Size: 624 Bytes

Versions: 9

Compression:

Stored size: 624 Bytes

Contents

module FriendlyId
  class Railtie < Rails::Railtie
    
    initializer "friendly_id.configure_rails_initialization" do |app|
      # Experimental Sequel support. See: http://github.com/norman/friendly_id_sequel
      if app.config.generators.rails[:orm] == :sequel
        require "friendly_id/sequel"
      else
        # Only Sequel and ActiveRecord are currently supported; AR is the default.
        # Want Datamapper support? http://github.com/norman/friendly_id/issues#issue/24
        require "friendly_id/active_record"
      end
    end
    
    rake_tasks do
      load "tasks/friendly_id.rake"
    end

  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
cmassimo-friendly_id-3.0.4.2 lib/friendly_id/railtie.rb
friendly_id-3.0.6 lib/friendly_id/railtie.rb
friendly_id-3.0.5 lib/friendly_id/railtie.rb
friendly_id-3.0.4 lib/friendly_id/railtie.rb
friendly_id-3.0.3 lib/friendly_id/railtie.rb
friendly_id-3.0.2 lib/friendly_id/railtie.rb
friendly_id-3.0.1 lib/friendly_id/railtie.rb
friendly_id-3.0.0 lib/friendly_id/railtie.rb
friendly_id-3.0.0.beta3 lib/friendly_id/railtie.rb