Sha256: 83b2ef296b3bbcbb77445bfe6fa5c169a122f798f261fbf2df542fbf9643495e

Contents?: true

Size: 1.52 KB

Versions: 16

Compression:

Stored size: 1.52 KB

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'

module Cmor
  module Contact
    module Configuration
      def configure
        yield self
      end

      mattr_accessor :input_name_css_classes do
        'form-control'
      end

      mattr_accessor :input_email_css_classes do
        'form-control'
      end

      mattr_accessor :input_phone_css_classes do
        'form-control'
      end

      mattr_accessor :input_message_css_classes do
        'form-control'
      end

      mattr_accessor :input_terms_of_service_css_classes do
        ''
      end

      mattr_accessor :form_actions_wrapper_css_classes do
        'controls form-actions well'
      end

      mattr_accessor :sender do
        ->(contact_request) { "#{contact_request.name} <#{contact_request.email}>" }
      end

      mattr_accessor :recipients do
        ->(environment) { "jane.doe@domain.local" }
      end

      mattr_accessor :sender do
        ->(mail_form) { %("#{mail_form.name}" <#{mail_form.email}>) }
      end

      mattr_accessor :base_controller do
        'ApplicationController'
      end

      mattr_accessor :additional_contact_information do
        nil
      end

      mattr_accessor :after_create_url do
        ->(controller) { controller.root_path }
      end

      mattr_accessor :contact_request_include_modules do
        ->() { [Cmor::Contact::ContactRequest::PhoneConcern] }
      end
      mattr_accessor :whatsapp_number do
        nil
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cmor_contact-0.0.60.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.59.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.58.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.57.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.56.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.55.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.54.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.53.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.52.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.51.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.50.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.49.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.48.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.45.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.44.pre lib/cmor/contact/configuration.rb
cmor_contact-0.0.43.pre lib/cmor/contact/configuration.rb