= private = protected
select_value(sql, name = nil)
Returns a single value from a record
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 18 def select_value(sql, name = nil) result = select_one(sql, name) result.nil? ? nil : result.values.first end