tramway-admin 1.1.5 → 1.1.5.1
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: 60270dd39dbfcee1533273a508b32c4b150830ea59397da909d4ef1f69a9b26c
|
|
4
|
+
data.tar.gz: d4ba3cd51f39f5a418f586fbc64d190a5a13ec083ceb7ca5f61ee039b924665f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d279df15248b9184bac572b73930f704d7e800cc1cf9603b9bdd285f59765d6141070770966706774e15a11b82de4ff5d0edf00fb84881521087410b6cf9c64
|
|
7
|
+
data.tar.gz: 8379c0346a66dfd96627d4b64af9078e2fc7bd8a9b985f1a9d17af4d3649b2837d9d9174c4dcfe8c4bb7542cb019e7e671cf6b8120e4f9773fa8f85cbd74f6ad
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
module Tramway
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
module Tramway
|
|
2
|
+
module Admin
|
|
3
|
+
module RussianCasesHelper
|
|
4
|
+
def case_word(model_name, case_name)
|
|
5
|
+
word_case = I18n.t("cases.#{model_name.name.underscore}.#{case_name}")
|
|
6
|
+
return word_case if word_case.present?
|
|
7
|
+
raise "There is not #{case_name} implementation for \"#{model_name}\""
|
|
8
|
+
end
|
|
7
9
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
def genitive(word)
|
|
11
|
+
case_word word, :genitive
|
|
12
|
+
end
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
def instrumental(word)
|
|
15
|
+
case_word word, :instrumental
|
|
16
|
+
end
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
def dative(word)
|
|
19
|
+
case_word word, :dative
|
|
20
|
+
end
|
|
19
21
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
def plural(word)
|
|
23
|
+
case_word word, :plural
|
|
24
|
+
end
|
|
25
|
+
end
|
|
22
26
|
end
|
|
23
27
|
end
|