lib/caracal/core/relationships.rb in caracal-0.1.0 vs lib/caracal/core/relationships.rb in caracal-0.1.1

- old
+ new

@@ -38,10 +38,10 @@ # Public Methods #------------------------------------------------------------- #============== ATTRIBUTES ========================== - def relationship(**options, &block) + def relationship(options = {}, &block) id = relationship_counter.to_i + 1 options.merge!({ id: id }) model = Caracal::Core::Models::RelationshipModel.new(options, &block) if model.valid? \ No newline at end of file