magic_locales 0.0.4 → 0.0.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e98b8041ba800a7c591b77567e31a41e79735f08
|
4
|
+
data.tar.gz: 369854c9316c039b5f63554939de2c993d9c3b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9eadcad37d2434e7a5c8f86f9729017ffe42eee2dd1919ac76f413a09b2224762048e4802e70969954df535565a63d6b2a430fe10b85336f735b94f90b16a9a
|
7
|
+
data.tar.gz: 8710f5560a842bee7a53f2a7468ca71df191e106713ae3eded2e12aa15c0bec14869693609330784311695d7c241bacaade9af72b7457d48a8beb4b83ac20d61
|
@@ -30,10 +30,10 @@ module MagicLocales
|
|
30
30
|
copy_file( "locale_seeds.rb", "db/seeds/locales.rb" )
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
desc "add magic_logales initialitzer"
|
34
|
+
def copy_mgca_initialitzer
|
35
|
+
copy_file( "magic_initializer.rb", "config/initializers/magic_logales.rb" )
|
36
|
+
end
|
37
37
|
|
38
38
|
desc "add magic_locales routes"
|
39
39
|
def copy_mgca_routes
|
@@ -2,6 +2,7 @@
|
|
2
2
|
## Need authentication for locale admin routes use this:
|
3
3
|
##
|
4
4
|
# => MagicLocales::BaseController.class_eval do
|
5
|
+
# => # layout proc { |controller| controller.request.xhr? ? false : "application" }
|
5
6
|
# => private
|
6
7
|
# => # overwrite authentication method
|
7
8
|
# => def authenticate_visitor
|