Sha256: d62e216f338583b77a6bcb2e92b720663d018983c33febed6a35aeb1ea9b01dd

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

require 'rails/generators/named_base'
require 'rails/generators/migration'
require 'rails/generators/active_record'

module Analects
  module Generators
    class Base < ::Rails::Generators::Base
      include Rails::Generators::Migration

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

      def self.source_root
        @_analects_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'analects', generator_name, 'templates'))
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
analects-0.4.2 lib/generators/analects.rb
analects-0.4.1 lib/generators/analects.rb
analects-0.4.0 lib/generators/analects.rb
analects-0.3.1 lib/generators/analects.rb
analects-0.2.1 lib/generators/analects.rb
analects-0.2.0 lib/generators/analects.rb