Class: FxRate::Generators::Base

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/fx_rate.rb

Direct Known Subclasses

MigrationGenerator

Class Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



12
13
14
# File 'lib/generators/fx_rate.rb', line 12

def self.next_migration_number(path)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end

.source_rootObject



8
9
10
# File 'lib/generators/fx_rate.rb', line 8

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