module OData::Model::ActiveModel

The OData::Model::ActiveModel module encapsulates all the functionality specifically needed for OData::Model to work with Rails via the ActiveModel conventions.

Public Instance Methods

errors() click to toggle source

Integrates ActiveModel’s error handling capabilities @return [ActiveModel::Errors]

# File lib/odata/model/active_model.rb, line 22
def errors
  @errors ||= ::ActiveModel::Errors.new(self)
end
read_attribute_for_validation(attr) click to toggle source

Used for ActiveModel validations @api private

# File lib/odata/model/active_model.rb, line 28
def read_attribute_for_validation(attr)
  send(attr)
end