Sha256: 4897ce066d09ed1738e861b05e40ea464a4bd497768baf56cab6c461f0607a99
Contents?: true
Size: 906 Bytes
Versions: 15
Compression:
Stored size: 906 Bytes
Contents
module Headstart 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 attr_accessor :use_delayed_job def initialize @mailer_sender = 'donotreply@example.com' @impersonation_hash = 'e76e05e1ddf74560ffb64c02a1c1b26c' @user_facebook_connect = false @use_delayed_job = true end end class << self attr_accessor :configuration end # Configure Headstart someplace sensible, # like config/initializers/headstart.rb # # @example # Headstart.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
15 entries across 15 versions & 1 rubygems