Module: Aequitas::VirtusIntegration::ClassMethods
- Defined in:
- lib/aequitas/virtus_integration.rb
Instance Method Summary collapse
-
#virtus_add_attribute(attribute) ⇒ Object
WARNING: overriding Virtus’ private API here, this is fragile.
Instance Method Details
#virtus_add_attribute(attribute) ⇒ Object
WARNING: overriding Virtus’ private API here, this is fragile
24 25 26 27 28 |
# File 'lib/aequitas/virtus_integration.rb', line 24 def virtus_add_attribute(attribute) super inline_attribute_rules = InlineAttributeRuleExtractor.extract(attribute) validation_rules.context(:default).concat(inline_attribute_rules) end |