use ActiveSupport::Configurable to store config options
classEmployeeincludeActiveSupport::Configurableconfig_accessor:research_lab_entry,:paid_leave# The config options are now also available as: # employee.research_lab_entry# employee.paid_leaveend
# Set the config option at the class levelEmployee.config.paid_leave=5# Create a new object and check the valueemployee=Employee.newemployee.config.paid_leave# => 5# Set a new value at the object-levelemployee.config.paid_leave=3# Now check the value at the class levelEmployee.config.paid_leave# => 3