Class: ValidateableHash

Inherits:
ValidateableObject show all
Includes:
ActiveModel::Validations
Defined in:
lib/validates_serialized/validateable_hash.rb

Method Summary

Methods included from ActiveModel::Validations

#validates_array_values_with, #validates_hash_values_with, #validates_serialized_with!

Methods inherited from ValidateableObject

#initialize

Constructor Details

This class inherits a constructor from ValidateableObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



7
8
9
10
11
12
13
# File 'lib/validates_serialized/validateable_hash.rb', line 7

def method_missing(method, *args, &block)
  if @object.keys.include?(method)
    @object[method]
  else
    super
  end
end