Sha256: 4774ad646748fd9b6856871664f1ffbcbb38704e8f5e542e229dad037739c6ad

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

require 'rails/generators/active_record'

class SharpSocialGenerator < ActiveRecord::Generators::Base
  source_root File.expand_path('../templates', __FILE__)
  
  def generate_model
    copy_file 'follow.rb', "app/models/follow.rb"
  end

  def generate_migration
    migration_template 'migration.rb', "db/migrate/create_sharp_social"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sharp_social-0.1.1 lib/generators/sharp_social/sharp_social_generator.rb