Class: Knowledge::Setters::Rails
- Inherits:
-
Base
- Object
- Base
- Knowledge::Setters::Rails
- Defined in:
- lib/knowledge/setters/rails.rb
Overview
Instance Method Summary collapse
-
#set(name:, value:) ⇒ Object
Sets the variable in rails app.
Instance Method Details
#set(name:, value:) ⇒ Object
Sets the variable in rails app.
Parameters
27 28 29 |
# File 'lib/knowledge/setters/rails.rb', line 27 def set(name:, value:) ::Rails.application.config.public_send("#{name}=", value) end |