mirador_rails 0.4.0 → 0.4.1
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: 8f5ef99bea15b813081f91b4bae2283f1911641f
|
4
|
+
data.tar.gz: d4e415082b5ac2e0bbf75c0c33e4465454ca3c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50d989244ab2bfeb270f0d7eb01c3537d8a98e9d45ddcc972abc5f28bb3e5b674c655c60adcfd31f8c3b665bf13ad490a1f66a65e9672ee00d28979ff7a8030c
|
7
|
+
data.tar.gz: b9f59ae584848f3e3f4a765f773461cb186a004a3b249a6e28142283a940c04f24dfcb2a77cb48155b433d8de4268cc7e8b8498965073da92c45f7b90147a762
|
@@ -5,6 +5,8 @@ module MiradorRails
|
|
5
5
|
language = params.fetch(:locale) { I18n.default_locale.to_s }
|
6
6
|
locale = MiradorRails::Locale.new(language)
|
7
7
|
render json: locale.file_source
|
8
|
+
rescue MiradorRails::Exceptions::LocaleNotFound
|
9
|
+
raise ActionController::RoutingError.new('Not Found')
|
8
10
|
end
|
9
11
|
end
|
10
12
|
end
|