Class: ApiMaker::ModelsGeneratorService

Inherits:
ApplicationService show all
Defined in:
app/services/api_maker/models_generator_service.rb

Instance Method Summary collapse

Methods inherited from ApplicationService

#api_maker_json

Instance Method Details

#ignore_model?(model) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/services/api_maker/models_generator_service.rb', line 7

def ignore_model?(model)
  model.name.end_with?("::Translation", "::ApplicationRecord")
end

#performObject



2
3
4
5
# File 'app/services/api_maker/models_generator_service.rb', line 2

def perform
  ApiMaker::GenerateReactNativeApiService.execute! if ApiMaker::Configuration.current.react_native_path.present?
  succeed!
end