lib/jsonapionify/structure/objects/relationship.rb in jsonapionify-0.9.0 vs lib/jsonapionify/structure/objects/relationship.rb in jsonapionify-0.9.1
- old
+ new
@@ -1,7 +1,9 @@
module JSONAPIonify::Structure
module Objects
class Relationship < Base
+ define_order *%i{data meta links}
+
# A "relationship object" MUST contain at least one of the following:
must_contain_one_of! :links, # A links object.
:data, # Resource linkage.
:meta # A meta object that contains non-standard meta-information about the relationship.