Module: OData::Model::ActiveModel::ClassMethods

Defined in:
lib/odata/model/active_model.rb

Overview

Methods mixed in at the class level.

Instance Method Summary collapse

Instance Method Details

#human_attribute_name(attr, options = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Used for ActiveModel validations



36
37
38
# File 'lib/odata/model/active_model.rb', line 36

def human_attribute_name(attr, options = {})
  attr
end

#lookup_ancestorsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Used for ActiveModel validations



42
43
44
# File 'lib/odata/model/active_model.rb', line 42

def lookup_ancestors
  [self]
end