Exception: Graphiti::Errors::Unlinkable
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, sideload) ⇒ Unlinkable
constructor
A new instance of Unlinkable.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, sideload) ⇒ Unlinkable
Returns a new instance of Unlinkable.
265 266 267 268 |
# File 'lib/graphiti/errors.rb', line 265 def initialize(resource_class, sideload) @resource_class = resource_class @sideload = sideload end |
Instance Method Details
#message ⇒ Object
270 271 272 273 274 275 276 277 278 |
# File 'lib/graphiti/errors.rb', line 270 def <<-MSG #{@resource_class.name}: Tried to link sideload #{@sideload.name.inspect}, but cannot generate links! Graphiti.config.context_for_endpoint must be set to enable link generation: Graphiti.config.context_for_endpoint = ->(path, action) { ... } MSG end |