Sha256: d1c64c69ec7bd7dc976c49f7e001fbf09f7f0f10f483cd75f48745842a95a2f3
Contents?: true
Size: 941 Bytes
Versions: 4
Compression:
Stored size: 941 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 :facebook_app_id 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
4 entries across 4 versions & 1 rubygems