Sha256: e6e7618123fe8d351c9d0ccd4ab64d0e79ea73e873423e3dc51f0eae3e261f30
Contents?: true
Size: 863 Bytes
Versions: 3
Compression:
Stored size: 863 Bytes
Contents
module Replyr class Config attr_accessor :reply_prefix, :reply_host, :bounce_prefix, :bounce_host, :secret, :user_class def reply_prefix @reply_prefix || "reply" end def bounce_prefix @bounce_prefix || "bounce" end def user_class @user_class || User end def reply_host @reply_host || (raise RuntimeError, "Replyr.config.reply_host is nil. Please set a host in an initializer.") end def bounce_host @bounce_host || (raise RuntimeError, "Replyr.config.bounce_host is nil. Please set a host in an initializer.") end def secret @secret || (raise RuntimeError, "Replyr.config.secret is nil. Please set a secure secret token in an initializer.") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
replyr-0.1.0 | lib/replyr/config.rb |
replyr-0.0.9 | lib/replyr/config.rb |
replyr-0.0.8 | lib/replyr/config.rb |