Class: SwifterEnum::Generators::EnumGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- SwifterEnum::Generators::EnumGenerator
- Defined in:
- lib/swifter_enum/generators/enum/enum_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_enum_file ⇒ Object
8 9 10 |
# File 'lib/swifter_enum/generators/enum/enum_generator.rb', line 8 def create_enum_file template "enum.rb.tt", File.join("app/models/swifter_enum", class_path, "#{file_name}_enum.rb") end |