Sha256: 4ff9da092267dae791751e7e6139bc3816de5aacae0dde9780d4c5a02a30c2b9
Contents?: true
Size: 1021 Bytes
Versions: 2
Compression:
Stored size: 1021 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 attr_accessor :url_after_create attr_accessor :session_failure_template 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headstart-0.11.2 | lib/headstart/configuration.rb |
headstart-0.11.1 | lib/headstart/configuration.rb |