Class: ApiMaker::ModelsGeneratorService
- Inherits:
-
ApplicationService
- Object
- ServicePattern::Service
- ApplicationService
- ApiMaker::ModelsGeneratorService
- Defined in:
- app/services/api_maker/models_generator_service.rb
Instance Method Summary collapse
Methods inherited from ApplicationService
Instance Method Details
#ignore_model?(model) ⇒ 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 |
#perform ⇒ Object
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 |