Sha256: e107689abb34d2d30f5d41f20cfda9d3969972f92cf5e75f8e499e58808716ee
Contents?: true
Size: 870 Bytes
Versions: 2
Compression:
Stored size: 870 Bytes
Contents
module BlueLightSpecial class Configuration attr_accessor :mailer_sender attr_accessor :impersonation_hash attr_accessor :use_facebook_connect attr_accessor :facebook_api_key attr_accessor :facebook_secret_key def initialize @mailer_sender = 'donotreply@example.com' @impersonation_hash = 'e76e05e1ddf74560ffb64c02a1c1b26c' @user_facebook_connect = false end end class << self attr_accessor :configuration end # Configure BlueLightSpecial someplace sensible, # like config/initializers/blue_light_special.rb # # @example # BlueLightSpecial.configure do |config| # config.mailer_sender = 'donotreply@example.com' # config.impersonation_hash = 'abc123def456...' # end def self.configure self.configuration ||= Configuration.new yield(configuration) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blue_light_special-0.2.1 | lib/blue_light_special/configuration.rb |
blue_light_special-0.2.0 | lib/blue_light_special/configuration.rb |