Class: Heracles::Wrapper::NotificationResponseGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_modelObject



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_specObject



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