Sha256: 4f1db0054fc04f9568dadf0c756266af47cc7ef37be86b736728a5ff8b874f89

Contents?: true

Size: 514 Bytes

Versions: 32

Compression:

Stored size: 514 Bytes

Contents

module Clearance
  class Configuration
    attr_accessor :mailer_sender

    def initialize
      @mailer_sender = "hello@example.org"
    end
  end

  class << self
    attr_accessor :configuration
  end

  # Configure Clearance someplace sensible,
  # like config/initializers/clearance.rb
  #
  # @example
  #   Clearance.configure do |config|
  #     config.mailer_sender = 'donotreply@example.com'
  #   end
  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
fbdoorman-0.9.3 lib/clearance/configuration.rb
fbdoorman-0.9.2 lib/clearance/configuration.rb
fbdoorman-0.9.1 lib/clearance/configuration.rb
fbdoorman-0.9.0 lib/clearance/configuration.rb
fbdoorman-0.8.0.98 lib/clearance/configuration.rb
fbdoorman-0.8.0.97 lib/clearance/configuration.rb
fbdoorman-0.8.0.95 lib/clearance/configuration.rb
fbdoorman-0.8.0.94 lib/clearance/configuration.rb
fbdoorman-0.8.0.93 lib/clearance/configuration.rb
fbdoorman-0.8.0.92 lib/clearance/configuration.rb
fbdoorman-0.8.0.91 lib/clearance/configuration.rb
fbdoorman-0.8.0.9 lib/clearance/configuration.rb
fbdoorman-0.8.0.8 lib/clearance/configuration.rb
fbdoorman-0.8.0.7 lib/clearance/configuration.rb
fbdoorman-0.8.0.6 lib/clearance/configuration.rb
fbdoorman-0.8.0.5 lib/clearance/configuration.rb
fbdoorman-0.8.0.4 lib/clearance/configuration.rb
fbdoorman-0.8.0.2 lib/clearance/configuration.rb
fbdoorman-0.8.0.1 lib/clearance/configuration.rb
fbdoorman-0.8.0 lib/clearance/configuration.rb