Exception: CFC::Errors::MissingProperty
- Inherits:
-
StandardError
- Object
- StandardError
- CFC::Errors::MissingProperty
- Defined in:
- lib/cfc/errors/missing_property.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message) ⇒ MissingProperty
constructor
A new instance of MissingProperty.
Constructor Details
#initialize(message) ⇒ MissingProperty
Returns a new instance of MissingProperty.
9 10 11 |
# File 'lib/cfc/errors/missing_property.rb', line 9 def initialize() super end |
Class Method Details
.default_message(obj, property) ⇒ Object
4 5 6 7 |
# File 'lib/cfc/errors/missing_property.rb', line 4 def self.(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 |