lib/neo4j/active_node/orm_adapter.rb in neo4j-4.0.0 vs lib/neo4j/active_node/orm_adapter.rb in neo4j-4.1.0

- old
+ new

@@ -20,11 +20,11 @@ end # Get an instance by id of the model def get!(id) klass.find(wrap_key(id)).tap do |node| - raise "No record found" if node.nil? + fail 'No record found' if node.nil? end end # Get an instance by id of the model def get(id) @@ -66,18 +66,16 @@ end private def hasherize_order(order) - (order || []).map {|clause| Hash[*clause] } + (order || []).map { |clause| Hash[*clause] } end def extract_id!(conditions) if id = conditions.delete(:id) conditions[klass.id_property_name.to_sym] = id end end - end end end -