Sha256: b3bcf06b48e8da4f6e069a06a4d9cb434b6914bb250e156b4697e18e47803089
Contents?: true
Size: 1.45 KB
Versions: 12
Compression:
Stored size: 1.45 KB
Contents
module MessageTrain def self.configure(configuration = MessageTrain::Configuration.new) if block_given? yield configuration end @@configuration = configuration end def self.configuration @@configuration ||= MessageTrain::Configuration.new end class Configuration attr_accessor :slug_columns, :name_columns, :current_user_method, :user_model, :user_sign_in_path, :user_route_authentication_method, :address_book_method, :address_book_methods, :recipient_tables, :collectives_for_recipient_methods, :valid_senders_methods, :valid_recipients_methods, :from_email, :site_name def initialize self.recipient_tables = {} self.slug_columns = { users: :slug } self.name_columns = { users: :name } self.user_model = 'User' self.current_user_method = :current_user self.user_sign_in_path = '/users/sign_in' self.user_route_authentication_method = :user self.address_book_method = :address_book # This is a fallback self.address_book_methods = {} self.collectives_for_recipient_methods = {} self.valid_senders_methods = {} self.valid_recipients_methods = {} self.from_email = '' self.site_name = 'Example Site Name' end end end
Version data entries
12 entries across 12 versions & 1 rubygems