magic_locales 0.0.5 → 0.0.6
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: 63b61cb86ddb3625e2ed8a7a7ad847bf586aaac6
|
4
|
+
data.tar.gz: 50c1f4c9c4bd6e30c7cb06494f0bd02d2c872624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24f2f80f1652640c9c71b96810d4c58623a23a96686df952ffdd73c9b2c0c744deced5d299d29cfa9aa3dcb2b69bb5b4b2d728085a72df4cf7a6c6f31ee2c48b
|
7
|
+
data.tar.gz: 70cfbbc607e139d867b4f128f6a66971dded3aabb0881a252f34d948ac33aeb6da55670e3275ed7b1edde64a1cc460ac100fb632c2a818d7d6f34cf18606ea05
|
@@ -1,9 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
class MagicLocales::LocalesController < MagicLocales::BaseController
|
3
3
|
|
4
|
-
# => layout proc { |controller| controller.request.xhr? ? 'xhr' : get_layout }
|
5
|
-
layout proc { |controller| controller.request.xhr? ? false : "application" }
|
6
|
-
|
7
4
|
def index
|
8
5
|
# => @locales = ::MagicLocales::Locale.includes(:translations).with_translations(I18n.locale).order( 'mgclang_locale_translations.name ASC' )
|
9
6
|
@locales = MagicLocales::Locale.where(locale_state: "live").includes(:translations).with_translations(I18n.locale).order( 'mgclang_locale_translations.name ASC' )
|