Sha256: 01d082962f784b35670704a57116fc98ebb6533691b6d186e51284a1caca77eb

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ls-omniauth-3.0.3 app/models/ls_omniauth/config.rb