Class: Rails::Application::Configuration::Custom
- Defined in:
 - railties/lib/rails/application/configuration.rb
 
Overview
:nodoc:
Instance Method Summary collapse
- 
  
    
      #initialize  ⇒ Custom 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Custom.
 - #method_missing(method, *args) ⇒ Object
 - #respond_to_missing?(symbol, _) ⇒ Boolean
 
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
      606 607 608 609 610 611 612 613 614 615 616  | 
    
      # File 'railties/lib/rails/application/configuration.rb', line 606 def method_missing(method, *args) if method.end_with?("=") @configurations[:"#{method[0..-2]}"] = args.first elsif args.empty? @configurations.fetch(method) { @configurations[method] = ActiveSupport::OrderedOptions.new } else raise ArgumentError, "wrong number of arguments (given #{args.length}, expected 0) when reading configuration `#{method}`" end end  | 
  
Instance Method Details
#respond_to_missing?(symbol, _) ⇒ Boolean
      618 619 620  | 
    
      # File 'railties/lib/rails/application/configuration.rb', line 618 def respond_to_missing?(symbol, _) true end  |