class FxRate::Generators::Base
Public Class Methods
next_migration_number(path)
click to toggle source
# 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_root()
click to toggle source
# 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