Class: FxRate::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FxRate::Generators::Base
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/fx_rate.rb
Direct Known Subclasses
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_root ⇒ Object
8 9 10 |
# File 'lib/generators/fx_rate.rb', line 8 def self.source_root @_fx_rate_source_root ||= File.(File.join(File.dirname(__FILE__), 'fx_rate', generator_name, 'templates')) end |