lib/neo4j/active_rel/query.rb in neo4j-4.1.0 vs lib/neo4j/active_rel/query.rb in neo4j-4.1.1
- old
+ new
@@ -2,13 +2,13 @@
module Query
extend ActiveSupport::Concern
module ClassMethods
# Returns the object with the specified neo4j id.
- # @param [String,Fixnum] id of node to find
+ # @param [String,Integer] id of node to find
# @param [Neo4j::Session] session optional
def find(id, session = self.neo4j_session)
- fail "Unknown argument #{id.class} in find method (expected String or Fixnum)" if not [String, Fixnum].include?(id.class)
+ fail "Unknown argument #{id.class} in find method (expected String or Integer)" if !(id.is_a?(String) || id.is_a?(Integer))
find_by_id(id, session)
end
# Loads the relationship using its neo_id.
def find_by_id(key, session = Neo4j::Session.current!)