Class: ClientSideValidations::Adapters::ORMBase
- Inherits:
-
Object
- Object
- ClientSideValidations::Adapters::ORMBase
- Defined in:
- lib/client_side_validations/adapters/orm_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
Instance Method Summary collapse
-
#initialize(base) ⇒ ORMBase
constructor
A new instance of ORMBase.
- #validation_fields ⇒ Object
- #validations_to_hash(attr) ⇒ Object
Constructor Details
#initialize(base) ⇒ ORMBase
Returns a new instance of ORMBase.
6 7 8 |
# File 'lib/client_side_validations/adapters/orm_base.rb', line 6 def initialize(base) self.base = base end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
4 5 6 |
# File 'lib/client_side_validations/adapters/orm_base.rb', line 4 def base @base end |
Instance Method Details
#validation_fields ⇒ Object
13 14 15 |
# File 'lib/client_side_validations/adapters/orm_base.rb', line 13 def validation_fields [] end |
#validations_to_hash(attr) ⇒ Object
10 11 |
# File 'lib/client_side_validations/adapters/orm_base.rb', line 10 def validations_to_hash(attr) end |