Sha256: 6453586007a83685e04ae1d8658f117650e0fde6df39e92bec69904bb5b2d73c
Contents?: true
Size: 1.88 KB
Versions: 5
Compression:
Stored size: 1.88 KB
Contents
require 'commons/railtie' require 'strip_attributes' require 'active_model_serializers' require 'jwt' require 'phonelib' require 'commons/config' # authentication require 'commons/authentication/json_web_token' require 'commons/authentication/authenticate_by_jwt' # controllers require 'commons/controllers/schema_validable' # repositories require 'commons/repositories/base_repository' require 'commons/repositories/catalogs/concerns/model_caching_extention' require 'commons/repositories/catalogs/base_catalog' # services require 'commons/services/concerns/callable' # models require 'commons/concerns/attributes/sex' require 'commons/concerns/extensions/deleted' require 'commons/concerns/guard/capitalizable' require 'commons/concerns/validations/undestroyable' # utils require 'commons/formatter/null_attributes_remover' require 'commons/formatter/regex_constants' require 'commons/formatter/string_utils' require 'commons/formatter/e164_phone' # errors require 'commons/errors/error_base' require 'commons/errors/error_serializer' require 'commons/errors/bad_request' require 'commons/errors/conflict' require 'commons/errors/default_handling' require 'commons/errors/forbidden' require 'commons/errors/internal_server_error' require 'commons/errors/unprocessable_entity' require 'commons/errors/invalid_resource' require 'commons/errors/maintenance_mode' require 'commons/errors/missing_parameter' require 'commons/errors/not_unique' require 'commons/errors/payment_required' require 'commons/errors/precondition_failed' require 'commons/errors/resource_not_found' require 'commons/errors/route_not_found' require 'commons/errors/unauthorized' # middleware require 'commons/middleware/catch_json_parse_errors' mydir = __dir__ I18n.load_path += Dir[File.join(mydir, 'commons', 'config', 'locales', '**/*.yml').to_s] I18n.reload! if I18n.backend.initialized? Phonelib.default_country = "MX" module Commons end
Version data entries
5 entries across 5 versions & 1 rubygems