Sha256: bbe480d0e0347b8b6c9925d431dafd3932874396ad47aeffbb93afdd83a62e5b

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

require 'rails/generators'
module Heracles
  module Wrapper
    class NotificationResponseGenerator < Rails::Generators::NamedBase
      source_root File.expand_path('../templates', __FILE__)

      def create_model
        template(
          'notification_response.rb.erb',
          File.join('app/models/', "#{file_name}.rb")
        )
      end
      def create_spec
        template(
          'notification_response_spec.rb.erb',
          File.join('spec/models/',"#{file_name}_spec.rb")
        )
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
heracles-wrapper-0.0.3 lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb
heracles-wrapper-0.0.2 lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb
heracles-wrapper-0.0.1 lib/rails/generators/heracles/wrapper/notification_response/notification_response_generator.rb