Sha256: 2dacfc08a3008b24eeb3dcaae6005d8863bc00b5cb36ad09b1cc90f1702c8d35

Contents?: true

Size: 736 Bytes

Versions: 6

Compression:

Stored size: 736 Bytes

Contents

require "rails/generators/active_record/migration"

module SubscriptionFu
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Rails::Generators::Migration
      extend ActiveRecord::Generators::Migration

      source_root File.expand_path("../templates", __FILE__)
      desc "Generates the migrations require for subscription_fu"

      def create_migration_file
        migration_template 'migration.rb', 'db/migrate/create_subscription_fu_tables.rb'
      end
      def copy_initializer
        template 'initializer.rb', 'config/initializers/subscription_fu.rb'
      end
      def copy_language_file
        template 'en.yml', 'config/locales/subscription_fu.en.yml'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
subscription_fu-0.4.0 lib/generators/subscription_fu/install_generator.rb
subscription_fu-0.3.1 lib/generators/subscription_fu/install_generator.rb
subscription_fu-0.3.0 lib/generators/subscription_fu/install_generator.rb
subscription_fu-0.2.1 lib/generators/subscription_fu/install_generator.rb
subscription_fu-0.2.0 lib/generators/subscription_fu/install_generator.rb
subscription_fu-0.1.0 lib/generators/subscription_fu/install_generator.rb