Exception: Graphiti::Errors::ImplicitSortTypeMissing
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, name) ⇒ ImplicitSortTypeMissing
constructor
A new instance of ImplicitSortTypeMissing.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, name) ⇒ ImplicitSortTypeMissing
Returns a new instance of ImplicitSortTypeMissing.
502 503 504 505 |
# File 'lib/graphiti/errors.rb', line 502 def initialize(resource_class, name) @resource_class = resource_class @name = name end |
Instance Method Details
#message ⇒ Object
507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/graphiti/errors.rb', line 507 def <<~MSG Tried to add sort-only attribute #{@name.inspect}, but type was missing! If you are adding a sort that does not have a corresponding attribute, you must pass a type: sort :name, :string do <--- like this # ... code ... end MSG end |