# File lib/tapkit/access/model.rb, line 92 def entity( object ) if GenericRecord === object then name = object.entity_name else name = object end @entities.each do |e| if e.name == name then return e end end nil end