Module: Contact

Defined in:
lib/contact/engine.rb,
lib/contact/version.rb,
lib/flyover-contact.rb,
app/models/contact/message.rb,
app/mailers/contact/message_mailer.rb,
app/helpers/contact/messages_helper.rb,
app/helpers/contact/application_helper.rb,
app/controllers/contact/messages_controller.rb,
app/controllers/contact/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, MessagesHelper Classes: ApplicationController, Engine, Message, MessageMailer, MessagesController

Constant Summary collapse

VERSION =
"1.1.5"
@@to_email =
"[email protected]"
@@subject =
"New Contact Form Submission"
@@success_message =
"Success! Your message has been sent and we'll get back to you as soon as possible."
@@base_controller =
"::ApplicationController"
@@contact_page_path =
"contact"

Class Method Summary collapse

Class Method Details

.base_controllerObject



15
16
17
# File 'lib/flyover-contact.rb', line 15

def self.base_controller
  @@base_controller.constantize
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Contact)

    the object that the method was called on



11
12
13
# File 'lib/flyover-contact.rb', line 11

def self.configure(&block)
  yield self
end