ecm_translations2_backend 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ecm/translations/backend/translations_controller.rb +3 -3
- data/app/policies/ecm/translations/translation_policy.rb +1 -1
- data/config/routes.rb +0 -1
- data/lib/ecm/translations/backend/configuration.rb +6 -2
- data/lib/ecm/translations/backend/engine.rb +1 -1
- data/lib/ecm/translations/backend/version.rb +1 -1
- data/lib/generators/ecm/translations/backend/install/install_generator.rb +1 -1
- data/lib/generators/ecm/translations/backend/install/templates/ecm_translations_backend.rb +20 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06567523be1b8ea9f9c91d62dee0df15c4b85141
|
4
|
+
data.tar.gz: bbd9a634b8e1a69d6cdd93df8e8c30bd4a0c7ec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ed7bf3a8379bc65f26e0b96bbb33a175c504ba18bddd748760a207d8a7f294239cf18b8c9d92a71f4100b6b2a2afdf3c888fefb521dd4004d3f5f1c8014e90
|
7
|
+
data.tar.gz: 89fb656fc035a0eb4a9f664d8738c4741eba3388e52952c4b706d916b2bd8ec136794fab000ac753c445844c1ccc90d21a3195e55fe6c875b3de8a5a4154ca73
|
@@ -22,13 +22,13 @@ class Ecm::Translations::Backend::TranslationsController < Itsf::Backend::Resour
|
|
22
22
|
|
23
23
|
def permitted_params
|
24
24
|
# Set the allowed params, for your create and update methods.
|
25
|
-
#
|
25
|
+
#
|
26
26
|
# Example: params
|
27
27
|
# .require(:ecm_translations_translation)
|
28
28
|
# .permit(:title, :body)
|
29
|
-
#
|
29
|
+
#
|
30
30
|
params
|
31
31
|
.require(:ecm_translations_translation)
|
32
|
-
|
32
|
+
.permit(:locale, :key, :value, :interpolations, :is_proc)
|
33
33
|
end
|
34
34
|
end
|
data/config/routes.rb
CHANGED
@@ -4,7 +4,7 @@ module Ecm
|
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
isolate_namespace Ecm::Translations::Backend
|
6
6
|
|
7
|
-
initializer
|
7
|
+
initializer 'ecm_translations_backend.asset_pipeline' do |app|
|
8
8
|
app.config.assets.precompile << 'ecm_translations_backend.js'
|
9
9
|
app.config.assets.precompile << 'ecm_translations_backend.css'
|
10
10
|
end
|
@@ -1,14 +1,23 @@
|
|
1
|
-
Ecm::Translations::Backend.configure do |config|
|
2
|
-
# Set the resources, that will be shown in the backend menu
|
3
|
-
#
|
4
|
-
# Controller.descendants is empty in development. This is an eager load
|
5
|
-
# issue.
|
6
|
-
#
|
1
|
+
Ecm::Translations::Backend.configure do |config|
|
2
|
+
# Set the resources, that will be shown in the backend menu.
|
3
|
+
#
|
7
4
|
# Default: config.registered_controllers = -> {[
|
8
5
|
# Ecm::Translations::Backend::TranslationsController
|
9
6
|
# ]}
|
10
|
-
#
|
11
|
-
config.registered_controllers =
|
12
|
-
|
13
|
-
|
14
|
-
|
7
|
+
#
|
8
|
+
config.registered_controllers = lambda {
|
9
|
+
[
|
10
|
+
Ecm::Translations::Backend::TranslationsController
|
11
|
+
]
|
12
|
+
}
|
13
|
+
|
14
|
+
# Set the services, that will be shown in the backend menu.
|
15
|
+
#
|
16
|
+
# Default: config.registered_services = -> {[
|
17
|
+
# ]}
|
18
|
+
#
|
19
|
+
config.registered_services = lambda {
|
20
|
+
[
|
21
|
+
]
|
22
|
+
}
|
23
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_translations2_backend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|