Class: ClientSideValidations::Adapters::ORMBase

Inherits:
Object
  • Object
show all
Defined in:
lib/client_side_validations/adapters/orm_base.rb

Direct Known Subclasses

ActiveModel

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#baseObject

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_fieldsObject



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