Class: ApiMaker::ApplicationService
- Inherits:
-
ServicePattern::Service
- Object
- ServicePattern::Service
- ApiMaker::ApplicationService
- Defined in:
- app/services/api_maker/application_service.rb
Direct Known Subclasses
AbilitiesLoader, CollectionLoader, CommandService, DeepMergeParams, Deserializer, GenerateReactNativeApiService, IncludeHelpers, JsMethodNamerService, LocalsFromController, ModelClassesJavaScriptGeneratorService, ModelContentGeneratorService, Models::Save, ModelsFinderService, ModelsGeneratorService, MoveComponentsToRoutes, ResetIndexedDbService, RoutesFileReloader, SelectColumnsOnCollection, SelectParser, SimpleModelErrors, SpecHelper::ExecuteCollectionCommand, SpecHelper::ExecuteMemberCommand, ValidationErrorsGeneratorService
Instance Method Summary collapse
-
#api_maker_json(object) ⇒ Object
Replaces magic variables with actual variable names.
Instance Method Details
#api_maker_json(object) ⇒ Object
Replaces magic variables with actual variable names
3 4 5 6 7 |
# File 'app/services/api_maker/application_service.rb', line 3 def api_maker_json(object) json = object.to_json json.gsub!(/"\{\{([A-z_]+?)\}\}"/, "\\1") json end |