ecm_translations2_backend 1.0.4 → 2.0.0
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 +1 -22
- data/config/initializers/assets.rb +2 -0
- data/config/locales/de.yml +1 -2
- data/config/locales/en.yml +1 -2
- data/lib/ecm/translations/backend/engine.rb +0 -5
- data/lib/ecm/translations/backend/version.rb +1 -1
- data/lib/generators/ecm/translations/backend/install/templates/routes.source +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44db119609eff1f5776f47e51c67cc7b22cc067a
|
4
|
+
data.tar.gz: df69d484b5564598a06c6a21258c4bfb686c5ce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fa82fde6fd340be782c95af9e60c5ef8856fee5625148e9c3fe8bacfe353f78840a67bdee4a6c6d9a019e7b0001bfec8c155f92edc8e8c27ce5adbf487bbef7
|
7
|
+
data.tar.gz: 4ab17dfe031b12b2dd3ea2c29f927524d25f95ff2b4f31844848eb43103cd881df94d69307fa09a4e5ffa7a0f9d0ca419e87e25ae8bdff77c92038194f87c01a
|
@@ -1,34 +1,13 @@
|
|
1
1
|
class Ecm::Translations::Backend::TranslationsController < Itsf::Backend::Resource::BaseController
|
2
2
|
def self.resource_class
|
3
|
-
# Set the resource class here.
|
4
|
-
#
|
5
|
-
# Default: Ecm::Translations::Translation
|
6
|
-
#
|
7
3
|
Ecm::Translations::Translation
|
8
4
|
end
|
9
5
|
|
10
6
|
private
|
11
7
|
|
12
|
-
def collection_scope
|
13
|
-
# Customize the collection scope here for collection retrival (i.e. for the
|
14
|
-
# index action).
|
15
|
-
#
|
16
|
-
# Example: current_user.posts.includes(:comments)
|
17
|
-
#
|
18
|
-
# Default: resource_class
|
19
|
-
#
|
20
|
-
resource_class
|
21
|
-
end
|
22
|
-
|
23
8
|
def permitted_params
|
24
|
-
# Set the allowed params, for your create and update methods.
|
25
|
-
#
|
26
|
-
# Example: params
|
27
|
-
# .require(:ecm_translations_translation)
|
28
|
-
# .permit(:title, :body)
|
29
|
-
#
|
30
9
|
params
|
31
|
-
.require(:
|
10
|
+
.require(:translation)
|
32
11
|
.permit(:locale, :key, :value, :interpolations, :is_proc)
|
33
12
|
end
|
34
13
|
end
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -3,11 +3,6 @@ module Ecm
|
|
3
3
|
module Backend
|
4
4
|
class Engine < ::Rails::Engine
|
5
5
|
isolate_namespace Ecm::Translations::Backend
|
6
|
-
|
7
|
-
initializer 'ecm_translations_backend.asset_pipeline' do |app|
|
8
|
-
app.config.assets.precompile << 'ecm_translations_backend.js'
|
9
|
-
app.config.assets.precompile << 'ecm_translations_backend.css'
|
10
|
-
end
|
11
6
|
end
|
12
7
|
end
|
13
8
|
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:
|
4
|
+
version: 2.0.0
|
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:
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -233,6 +233,7 @@ files:
|
|
233
233
|
- app/views/ecm/translations/backend/translations/_search.html.haml
|
234
234
|
- app/views/ecm/translations/backend/translations/_table.html.haml
|
235
235
|
- app/views/layouts/ecm/translations/backend/application.html.erb
|
236
|
+
- config/initializers/assets.rb
|
236
237
|
- config/locales/de.yml
|
237
238
|
- config/locales/en.yml
|
238
239
|
- config/rbac.yml
|
@@ -266,9 +267,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
267
|
version: '0'
|
267
268
|
requirements: []
|
268
269
|
rubyforge_project:
|
269
|
-
rubygems_version: 2.
|
270
|
+
rubygems_version: 2.6.11
|
270
271
|
signing_key:
|
271
272
|
specification_version: 4
|
272
273
|
summary: Backend Module for ECM Translations 2
|
273
274
|
test_files: []
|
274
|
-
has_rdoc:
|