module Proxima::Validation

Public Class Methods

errors() click to toggle source
# File lib/proxima/validation.rb, line 10
def self.errors
  @errors ||= ActiveModel::Errors.new(self)
end
included(base) click to toggle source
# File lib/proxima/validation.rb, line 25
def self.included base
  base.extend ClassMethods
end

Public Instance Methods

read_attribute_for_validation(attr) click to toggle source
# File lib/proxima/validation.rb, line 6
def read_attribute_for_validation(attr)
  self.send attr
end