Class: Law::Generators::RegulationGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Law::Generators::RegulationGenerator
- Defined in:
- lib/generators/law/regulation/regulation_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_regulation ⇒ Object
10 11 12 |
# File 'lib/generators/law/regulation/regulation_generator.rb', line 10 def create_regulation template "regulation.rb.erb", File.join("app/regulations/", class_path, "#{file_name}_regulation.rb") end |