title: How can I access a custom variable in config/application.rb from a model?
body: <p>I have a custom variable in my <code>config/application.rb</code> that I want to access from one of my models. </p>
  
  <p>The variable is defined in <code>config/application.rb</code> like so: </p>
  
  <p><code>config.default_page_logo = 'pagelogo.png'</code></p>
  
  <p>And I'm trying to access it from the model in a method roughly similar to this:</p>
  
  <p><code>def logo_type
    logo = client.logo if is_client &amp;&amp; client.has_logo
    logo || Rails.configuration.default_page_logo
  end</code></p>
  
  <p>In the browser I get the following error: 
  <code>NoMethodError in Home#dashboard</code></p>
  
  <p><code>undefined method 'default_page_logo' for Rails::Application::Configuration:0x0000564b1b468680</code></p>
  
  <p>I'm running Ruby 2.4.3 and Rails 5.1.4</p>