2 Replies Latest reply on Apr 16, 2013 11:32 PM by John Michael Vincent Rustia

    Looping through model PropertyBag object

      I was trying to loop over a PropertyBag object using the normal ruby ".each do" but it is not working. It does return empty.

       

      def method(model)
        m = {}
        model.each do |key,value|
          #some logic
          m[key] = value
        end
        return m
      end
      

       

       

      Anyone knows how to properly loop over PropertyBag object?