I need to write this SQL-query on ruby
SELECT value FROM CompanySetting WHERE company_id = 1 AND title = 'Work days'
and next get this value for the check, like this
value = ...SQL query... and then if value.nil?..
Can you help me write method which do this, please?