Sha256: 966f7f24534758d82f2279dec0a8602c67b54f7e82411ff269b3f0a4cba24d1e

Contents?: true

Size: 727 Bytes

Versions: 2

Compression:

Stored size: 727 Bytes

Contents

require 'rails/generators/active_record'

module BigbluebuttonRails
  module Generators
    class InstallGenerator < Rails::Generators::Base
      include Rails::Generators::Migration
      source_root File.expand_path("../templates", __FILE__)

      desc "Creates the initializer, initial migration and locale files."

      def copy_locale
        copy_file "../../../../config/locales/en.yml", "config/locales/bigbluebutton_rails.en.yml"
      end

      def self.next_migration_number(dirname)
        ActiveRecord::Generators::Base.next_migration_number(dirname)
      end

      def create_migration_file
        migration_template 'migration.rb', 'db/migrate/create_bigbluebutton_rails.rb'
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigbluebutton_rails-0.0.2 lib/generators/bigbluebutton_rails/install_generator.rb
bigbluebutton_rails-0.0.1 lib/generators/bigbluebutton_rails/install_generator.rb