Class: Heracles::Wrapper::NotificationResponseGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Heracles::Wrapper::NotificationResponseGenerator
- Defined in:
- lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_model ⇒ Object
7 8 9 10 11 12 |
# File 'lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb', line 7 def create_model template( 'notification_response.rb.erb', File.join('app/models/', "#{file_name}.rb") ) end |
#create_spec ⇒ Object
13 14 15 16 17 18 |
# File 'lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb', line 13 def create_spec template( 'notification_response_spec.rb.erb', File.join('spec/models/',"#{file_name}_spec.rb") ) end |