Sha256: 6db6b17567f44cb2a8fbd0b44c173e126fbba7bebb563a9f54ce0003760d8f94

Contents?: true

Size: 506 Bytes

Versions: 4

Compression:

Stored size: 506 Bytes

Contents

require "rails/generators/named_base"

module RichI18n
  module Generators

    class Base < Rails::Generators::Base
      def self.source_root
        File.expand_path File.join(File.dirname(__FILE__), "rich", generator_name, "templates")
      end
    end

    module Migration
      def self.included(base)
        base.extend ClassMethods
      end

      module ClassMethods
        def next_migration_number(dirname)
          Time.now.strftime "%Y%m%d%H%M%S"
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rich_i18n-1.3.4 lib/generators/rich_i18n.rb
rich_i18n-1.3.3 lib/generators/rich_i18n.rb
rich_i18n-1.3.2 lib/generators/rich_i18n.rb
rich_i18n-1.3.1 lib/generators/rich_i18n.rb