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
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/generators/friendly_id_generator.rb
friendly_id-4.0.7 lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.6/lib/generators/friendly_id_generator.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/friendly_id-4.0.5/lib/generators/friendly_id_generator.rb
friendly_id-4.0.6 lib/generators/friendly_id_generator.rb
friendly_id-4.0.5 lib/generators/friendly_id_generator.rb
friendly_id-4.0.4 lib/generators/friendly_id_generator.rb
friendly_id-4.0.3 lib/generators/friendly_id_generator.rb
friendly_id-4.0.2 lib/generators/friendly_id_generator.rb
friendly_id-4.0.1 lib/generators/friendly_id_generator.rb
friendly_id-4.0.0 lib/generators/friendly_id_generator.rb
friendly_id-4.0.0.rc2 lib/generators/friendly_id_generator.rb
friendly_id-4.0.0.rc1 lib/generators/friendly_id_generator.rb
friendly_id-4.0.0.beta14 lib/generators/friendly_id_generator.rb
friendly_id-4.0.0.beta13 lib/generators/friendly_id_generator.rb
friendly_id-4.0.0.beta12 lib/generators/friendly_id_generator.rb