title: How to access YML file in rails
body: <p>I have set up a settings.yml file in my config folder with some list elements I want to pass to my enumerize in my rails model :</p>
  
  <pre><code>config/ settings.yml
  enumerize:
    hotel_status:
      - "Hotel Privé"
      - "Bâtiment Publique"
      - "CHRS"
      - "CADA"
      - "Centre d'accueil"
      - "Camping"
      - "Autres"
  </code></pre>
  
  <p>I am trying to pass the list inside my Hotel model to enumerize this way :</p>
  
  <pre><code>  enumerize :status, in: Settings.enumerize.hotel_status
  </code></pre>
  
  <p>but I am getting <code>uninitialized constant Hotel::Settings</code></p>
  
  <p>How can I pass the list in the YML to enumerize.</p>