Sha256: 122e44a0aa6d67ee0c5854bf5d7ce6b7d2c0e9db60cfe043682f9a5487c877a9

Contents?: true

Size: 587 Bytes

Versions: 3

Compression:

Stored size: 587 Bytes

Contents

require 'rails/generators'
require 'rails/generators/migration'
require 'generators/migration_helper'

module Netzke
  module Generators  
    class CoreGenerator < Rails::Generators::Base
      include ::MigrationHelper
      
      def execute
        migration_template 'create_netzke_preferences.rb', 'db/migrate/create_netzke_preferences.rb'
      end
      
      def self.source_root
        File.join(gem_root, 'templates', 'core')
      end        
      
      def self.gem_root
        File.expand_path("../../../../", __FILE__)
      end 
                 
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-core-0.6.2 lib/generators/netzke/core_generator.rb
netzke-core-0.6.1 lib/generators/netzke/core_generator.rb
netzke-core-0.6.0 lib/generators/netzke/core_generator.rb