Class: BaseGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/base_generator.rb

Constant Summary collapse

API_CONTROLLER_PATH =
'app/controllers/api_controller.rb'.freeze
SERIALIZERS =
{
  ams: 'ActiveModelSerializers',
  blueprinter: 'Blueprinter',
  jsonapi_serializer: 'JsonapiSerializer'
}

Class Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/generators/base_generator.rb', line 11

def self.exit_on_failure?
  true
end