i18n_date_range 1.0.2 → 1.0.3
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/lib/i18n_date_range/i18n_date_range_helper.rb +2 -2
- data/lib/i18n_date_range/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d63ea2ee051f21d65183750a064b9cd38f3248a55e50ec037056246c8e7a7424
|
4
|
+
data.tar.gz: fac4a2b62b8b2f0d38ba75b5107eed21dd7a0e09bdd0812f190e5f59292cdfe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af9801311b093b741615eb8c9fb2a2a34c3917cfcd88dcc60eab1016b122b61b4bd8ee68c610f64d68d257a0231e155c9974a2f392c52deff3fe93332bbc723c
|
7
|
+
data.tar.gz: 32917fd6bf796a4333492f2cedaca7293a508681b826c51eeb74b564ecdabee95db9ec4b0976c555d7e477f463640ba4201a8cfc7ff21696be06906b6db33f8e
|
data/Gemfile.lock
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
# Layout can be :one_line (default) or :two_lines, other might be necessary in the future
|
7
7
|
module I18nDateRangeHelper
|
8
8
|
|
9
|
-
def date_range_i18n(
|
10
|
-
I18nDateRangeGenerator.new(
|
9
|
+
def date_range_i18n(from_date, to_date = nil, format: :short, layout: :one_line)
|
10
|
+
I18nDateRangeGenerator.new(from_date, to_date, format: format, layout: layout).to_s.html_safe
|
11
11
|
end
|
12
12
|
|
13
13
|
end
|