flyover-contact 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74bb20c63f91cb6d9b2aea1043332a43ee5d5085
4
- data.tar.gz: a94425d28c8084f6d8b0113b38459254734d1761
3
+ metadata.gz: df47734e7a0ffac32fc55c2ec574ab0caa80c37f
4
+ data.tar.gz: 7511f26230771f4fe80edca562d8f0a1d862818a
5
5
  SHA512:
6
- metadata.gz: 51bf9021546c11f539a25dc98390190f83b0820b0249ab04d6515d65c2f88d285f6d84e336f373822add7b453b05cc3e8d456789e9e8feb6fa726115e5185f12
7
- data.tar.gz: de69aa1974cdcda809c3c52c29e59871b876f1d1b75fe93569edee70b4d8b8378b067db7f8aa8229cf94a3570f345bfd945051c7af1e5d7fd08977ceabf97084
6
+ metadata.gz: abc5ac5d779d06afafbbc26374f1345cf5c78a558d053249e8a1d91882e5152d81bd7895580c14e6771f69822b88c6165e8a667dfe53732e6140b168a7e3963d
7
+ data.tar.gz: 9133ba90137ed7c606b9a6f1a363673981c628617fb180b6a65b4baca98b79f279cfe5281babe9b8ea0548fb0e2530af876a0a38765948e649612d57061808d1
@@ -1,4 +1,4 @@
1
1
  module Contact
2
- class ApplicationController < ::ApplicationController
2
+ class ApplicationController < Contact.base_controller
3
3
  end
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module Contact
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -1,13 +1,18 @@
1
1
  require "contact/engine"
2
2
 
3
3
  module Contact
4
- mattr_accessor :to_email, :from_email, :subject, :success_message
4
+ mattr_accessor :to_email, :from_email, :subject, :success_message, :base_controller
5
5
  @@to_email = "to@example.com"
6
6
  @@from_email = "from@example.com"
7
7
  @@subject = "New Contact Form Submission"
8
8
  @@success_message = "Success! Your message has been sent and we'll get back to you as soon as possible."
9
+ @@base_controller = "::ApplicationController"
9
10
 
10
11
  def self.configure(&block)
11
12
  yield self
12
13
  end
14
+
15
+ def self.base_controller
16
+ @@base_controller.constantize
17
+ end
13
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flyover-contact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Van Der Beek