class LsOmniauth::Config < HashWithIndifferentAccess def running_in_dev_mode? self[:dev_mode].to_s == true.to_s && !LS_OMNIAUTH.environment.production? end def valid? self.slice(*[:client_id, :client_secret]).values.compact.length == 2 end end