enjoy_cms 0.3.6.1 → 0.3.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/views/enjoy/contacts/_form.html.slim +1 -1
- data/config/locales/ru.models.yml +1 -0
- data/lib/enjoy/controllers/contacts.rb +6 -2
- data/lib/enjoy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c158c7ee68ca2a611f66332947e0139f9b61b9bd
|
4
|
+
data.tar.gz: 3bdb3f23ee1119a132168dfa34a6bac5b20308e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96f31a367452269b83a3ed89a43ffcba7a8ad283c4480ca3707d59c2072d22abfabb7259b65f48a4ec109545ec7d117380368f38aac9fec49df4676b294061d2
|
7
|
+
data.tar.gz: ecf0efcd23fd851673fe725ddcdef0146a011483ddb1fce4602fef41a0a7f571795d45e2fb280cabff4a30c245e3eeaa650b0c11584ba7cad5407e21632953b1
|
data/Gemfile.lock
CHANGED
@@ -5,11 +5,13 @@ module Enjoy
|
|
5
5
|
def index
|
6
6
|
@contact_message = model.new
|
7
7
|
after_initialize
|
8
|
+
xhr_checker
|
8
9
|
end
|
9
10
|
|
10
11
|
def new
|
11
12
|
@contact_message = model.new
|
12
13
|
after_initialize
|
14
|
+
xhr_checker
|
13
15
|
end
|
14
16
|
|
15
17
|
def create
|
@@ -54,11 +56,13 @@ module Enjoy
|
|
54
56
|
def redirect_after_done
|
55
57
|
redirect_to :contacts_sent
|
56
58
|
end
|
57
|
-
def
|
59
|
+
def xhr_checker
|
58
60
|
if request.xhr?
|
59
|
-
render
|
61
|
+
render layout: false
|
60
62
|
end
|
61
63
|
end
|
64
|
+
def after_initialize
|
65
|
+
end
|
62
66
|
def after_create
|
63
67
|
# overrideable hook for updating message
|
64
68
|
end
|
data/lib/enjoy/version.rb
CHANGED