undercarriage 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 31eecbc405432e03696e5e1bbf2de1a51f9c8283b98027d10732272527df8a89
|
|
4
|
+
data.tar.gz: 78fdc57d5373a23c9f265a2fc6229798f51c38d5b08afe851301989a58ef5c20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec1fd30ade971146c1da5575c7a8023491f9811da0e3b1bc0f3edbe3ffb157610a19555d2472ce77070fac0b1dc2cf6968d2ce22708f0dee552260dd1b3c71f4
|
|
7
|
+
data.tar.gz: ffe06c3e008ce280d33c7ee2b656d49a1a7db2fb05a8e7aedd774504ff4ccfdedd56a7c50518298740b29156ca5dcd462583498df0e38d957d93057312bb61e1
|
|
@@ -74,10 +74,10 @@ module Undercarriage
|
|
|
74
74
|
private
|
|
75
75
|
|
|
76
76
|
def flash_message_builder(action, status, past_tense)
|
|
77
|
-
defaults = flash_message_defaults(
|
|
77
|
+
defaults = flash_message_defaults(controller_name_singular_title, action, status, past_tense)
|
|
78
78
|
message = defaults.shift
|
|
79
79
|
|
|
80
|
-
I18n.t(message, resource_name:
|
|
80
|
+
I18n.t(message, resource_name: controller_name_singular_title,
|
|
81
81
|
downcase_resource_name: controller_name_singular,
|
|
82
82
|
default: defaults)
|
|
83
83
|
end
|
|
@@ -28,11 +28,12 @@ module Undercarriage
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
##
|
|
31
|
-
#
|
|
31
|
+
# Titleized controller name
|
|
32
32
|
#
|
|
33
|
-
def
|
|
34
|
-
controller_name_singular.
|
|
33
|
+
def controller_name_singular_title
|
|
34
|
+
controller_name_singular.titleize
|
|
35
35
|
end
|
|
36
|
+
alias controller_name_singular_human controller_name_singular_title
|
|
36
37
|
|
|
37
38
|
##
|
|
38
39
|
# Model name
|