Sha256: 40d22303efe31bf09df4738a3d57b6d093223ccf4d4cab6c91fc1291b8d03d02
Contents?: true
Size: 485 Bytes
Versions: 2
Compression:
Stored size: 485 Bytes
Contents
module Hari class Node < Entity module Repository extend ActiveSupport::Concern module ClassMethods def find_one(id, options = {}) id = "#{node_type}##{id}" unless id.to_s.include?('#') super id, options end def find_many(ids, options = {}) ids = ids.map do |id| id.to_s.include?('#') ? id : "#{node_type}##{id}" end super ids, options end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hari-0.0.4 | lib/hari/node/repository.rb |
hari-0.0.3 | lib/hari/node/repository.rb |