def method_missing(sym, *args, &blk)
      # match: actor_entity | actor_id | actor
      match_data = sym.to_s.match(/(.+)_(entity|id)$/)
      entity_name = match_data ? match_data[1].to_sym : sym

      if Activr.registry.entities_names.include?(entity_name)
        # ok, don't worry...
        # define an instance method so that future calls on that method do not rely on method_missing
        self.instance_eval <<-RUBY
          def #{sym}(*args, &blk)
            nil
          end
        RUBY

        self.__send__(sym, *args, &blk)
      else
        # super Michel !
        super
      end
    end
def method_missing(sym, *args, &blk)
      # match: actor_entity | actor_id | actor
      match_data = sym.to_s.match(/(.+)_(entity|id)$/)
      entity_name = match_data ? match_data[1].to_sym : sym

      if Activr.registry.entities_names.include?(entity_name)
        # ok, don't worry...
        # define an instance method so that future calls on that method do not rely on method_missing
        self.instance_eval <<-RUBY
          def #{sym}(*args, &blk)
            nil
          end
        RUBY

        self.__send__(sym, *args, &blk)
      else
        # super Michel !
        super
      end
    end
Sugar so that we can try to fetch an entity defined for another activity (yes, I hate myself for that...)

 @api private