Sha256: c9fcac46403e7d7b518726e9636a9ff60c12ed2330af6f09a709c0c79134f9e9

Contents?: true

Size: 526 Bytes

Versions: 38

Compression:

Stored size: 526 Bytes

Contents

require 'rails/generators'
require "rails/generators/active_record"

# This generator adds a migration for the {FriendlyId::History
# FriendlyId::History} addon.
class FriendlyIdGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  extend ActiveRecord::Generators::Migration

  source_root File.expand_path('../../friendly_id', __FILE__)

  # Copies the migration template to db/migrate.
  def copy_files(*args)
    migration_template 'migration.rb', 'db/migrate/create_friendly_id_slugs.rb'
  end

end

Version data entries

38 entries across 33 versions & 4 rubygems

Version Path
mil_friendly_id-4.0.9.9 lib/generators/friendly_id_generator.rb
friendly_id-4.0.10.1 lib/generators/friendly_id_generator.rb
friendly_id-4.0.10 lib/generators/friendly_id_generator.rb
mil_friendly_id-4.0.9.8 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.8 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.7 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.6 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.5 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.4 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.3 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.2 lib/generators/friendly_id_generator.rb
geothird_friendly_id-4.0.9.1 lib/generators/friendly_id_generator.rb
friendly_id-4.1.0.beta.1 lib/generators/friendly_id_generator.rb
friendly_id-4.0.9 lib/generators/friendly_id_generator.rb
friendly_id-4.0.8 lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/generators/friendly_id_generator.rb