ama_layout 5.0.1 → 5.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 701dd21e0a1a6c4d211768c64b9ffd073879bbf9
|
4
|
+
data.tar.gz: f3761640f39656867bc1d0347f7153314e796d49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 053e17db61e1f5964a247e83d7187f21e2859ccd73e462a018d514a23d3256692d8a3a6e6dd19fbea46a57a6e17fa4f5391b5e35c254874c08d56adb5797566f
|
7
|
+
data.tar.gz: 63ea8a8a4b9155e14c8140e746e34111a3764c401b2b7b0a006f97a07799cd9c95a568e818c855b69480460e48725a91654a28c4d8da506f0df587acc5c200d0
|
@@ -47,14 +47,14 @@ module AmaLayoutContentHelper
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def notice(notice)
|
50
|
-
render "ama_layout/notice", locals: { message: notice } if notice
|
50
|
+
render partial: "ama_layout/notice", locals: { message: notice } if notice
|
51
51
|
end
|
52
52
|
|
53
53
|
def alert(alert)
|
54
|
-
render "ama_layout/alert", locals: { message: alert } if alert
|
54
|
+
render partial: "ama_layout/alert", locals: { message: alert } if alert
|
55
55
|
end
|
56
56
|
|
57
57
|
def success_message(success)
|
58
|
-
render "ama_layout/success", locals: { message: success } if success
|
58
|
+
render partial: "ama_layout/success", locals: { message: success } if success
|
59
59
|
end
|
60
60
|
end
|
data/lib/ama_layout/version.rb
CHANGED
@@ -123,7 +123,7 @@ describe AmaLayoutContentHelper do
|
|
123
123
|
let(:message) { "This is a notice." }
|
124
124
|
|
125
125
|
it "renders the notice partial if a notice is present" do
|
126
|
-
expect(helper).to receive(:render).with "ama_layout/notice", locals: { message: message }
|
126
|
+
expect(helper).to receive(:render).with partial: "ama_layout/notice", locals: { message: message }
|
127
127
|
helper.notice(message)
|
128
128
|
end
|
129
129
|
|
@@ -136,7 +136,7 @@ describe AmaLayoutContentHelper do
|
|
136
136
|
let(:message) { "This is an alert." }
|
137
137
|
|
138
138
|
it "renders the alert partial if a alert is present" do
|
139
|
-
expect(helper).to receive(:render).with "ama_layout/alert", locals: { message: message }
|
139
|
+
expect(helper).to receive(:render).with partial: "ama_layout/alert", locals: { message: message }
|
140
140
|
helper.alert(message)
|
141
141
|
end
|
142
142
|
|
@@ -149,7 +149,7 @@ describe AmaLayoutContentHelper do
|
|
149
149
|
let(:message) { "This is a success message" }
|
150
150
|
|
151
151
|
it "renders the success partial if a success message is present" do
|
152
|
-
expect(helper).to receive(:render).with "ama_layout/success", locals: { message: message }
|
152
|
+
expect(helper).to receive(:render).with partial: "ama_layout/success", locals: { message: message }
|
153
153
|
helper.success_message(message)
|
154
154
|
end
|
155
155
|
|