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