Module: LightServiceExt::ApplicationContract::InstanceMethods
- Defined in:
- lib/light-service-ext/application_contract.rb
Instance Method Summary collapse
Instance Method Details
#keys ⇒ Object
11 12 13 14 15 |
# File 'lib/light-service-ext/application_contract.rb', line 11 def keys return [] if schema.nil? schema&.rules&.keys || [] end |
#t(key, base_path: "errors", **opts) ⇒ Object
19 20 21 |
# File 'lib/light-service-ext/application_contract.rb', line 19 def t(key, base_path: "errors", **opts) self.class.t(key, base_path: base_path, **opts) end |