Sha256: 630b7e5385a210143ffb75737ec310e9cd987df41d5a2bb7af35447d2b31e445
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
module Clubhouse def self.configure yield config end def self.config @config ||= Configuration.new end class Configuration attr_accessor :member_model, :parent_mailer, :from_email, :invitation_url def initialize @member_model = "User" @parent_mailer = ::ApplicationMailer @invitation_url = ->(invitation) { "https://example.com/organizations/#{invitation.organization.name}/invitations/#{invitation.token}?email=#{invitation.email}" } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
clubhouse-0.3.0 | lib/clubhouse/configuration.rb |
clubhouse-0.2.0 | lib/clubhouse/configuration.rb |
clubhouse-0.1.0 | lib/clubhouse/configuration.rb |