Sha256: b25cbdf034859c5d6b64035dc5e244f9f8216d5162b597c6fcafd4d7a3ba5144
Contents?: true
Size: 412 Bytes
Versions: 5
Compression:
Stored size: 412 Bytes
Contents
require 'browser' module BigbluebuttonRails # Returns whether the current client should use the mobile client # or the desktop client. def self.use_mobile_client?(browser) browser.mobile? || browser.tablet? end # Just a wrapper around the Rails method to convert values to boolean def self.value_to_boolean(value) ActiveRecord::ConnectionAdapters::Column.value_to_boolean(value) end end
Version data entries
5 entries across 5 versions & 1 rubygems