Exception: CFC::Errors::MissingProperty

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cfc/errors/missing_property.rb

Class Method Summary collapse

Class Method Details

.default_message(obj, property) ⇒ Object



4
5
6
7
# File 'lib/cfc/errors/missing_property.rb', line 4

def self.default_message(obj, property)
  "This #{obj.class.name} does not have a `#{property}' property. If you are accessing this object from a " \
    'relationship on another object, the property may not have been fetched.'
end