module BazaModels::Model::CustomValidations
Public Class Methods
included(base)
click to toggle source
# File lib/baza_models/model/custom_validations.rb, line 2 def self.included(base) base.extend(ClassMethods) end
Private Instance Methods
execute_custom_validations()
click to toggle source
# File lib/baza_models/model/custom_validations.rb, line 17 def execute_custom_validations return unless self.class.custom_validations self.class.custom_validations.each do |method_name| __send__(method_name) end end