title: What is the best way to get enum string name from integer value
body: <p>I need to get string name of enum state by integer value, and i do it next way</p>
  
  <pre><code>Order.states.find{|x| x[1] == data['stateId']}
  </code></pre>
  
  <p>Does anybody know better way to do it?</p>
  
  <pre><code>enum state: {
           created: 0,
           cancelled: 100,
           complete: 10,
         }
  </code></pre>