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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ceba2def2f217f31cf2e276b73b28c6c0ed6719c
4
- data.tar.gz: df81f47fbf8dd9cd6b76be555edb150fd3b188ed
3
+ metadata.gz: 44db119609eff1f5776f47e51c67cc7b22cc067a
4
+ data.tar.gz: df69d484b5564598a06c6a21258c4bfb686c5ce3
5
5
  SHA512:
6
- metadata.gz: e0e945f4f900a05d5c6004f6b19aa1394447f140d9d338fe89215f89d3f3ddbaa10c9b87fe40235ba8d60042037f0b8c3a823ddc76c6f8f10d9b991b7ab8ec63
7
- data.tar.gz: ecd99420b2718de4ec85aa4d161417d037fcc9ea0a7d1848a704eff8d61caabcc6b37e9d49ab1fc74df1d2e3fecb20535993e1702c64876d1af4099a75ee767d
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(:ecm_translations_translation)
10
+ .require(:translation)
32
11
  .permit(:locale, :key, :value, :interpolations, :is_proc)
33
12
  end
34
13
  end
@@ -0,0 +1,2 @@
1
+ Rails.application.config.assets.precompile += %w( ecm_translations_backend.css )
2
+ Rails.application.config.assets.precompile += %w( ecm_translations_backend.js )
@@ -6,5 +6,4 @@ de:
6
6
  is_proc: Prozeduren
7
7
  not_translated: Ohne Übersetzung
8
8
  routes:
9
- mount:
10
- ecm_translations_backend: '/backend/translations'
9
+ ecm-translations-backend-engine: 'uebersetzungen'
@@ -6,5 +6,4 @@ en:
6
6
  is_proc: Procedures
7
7
  not_translated: Without translation
8
8
  routes:
9
- mount:
10
- ecm_translations_backend: '/backend/translations'
9
+ ecm-translations-backend-engine: 'translations'
@@ -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
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Translations
3
3
  module Backend
4
- VERSION = '1.0.4'
4
+ VERSION = '2.0.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  localized do
3
- mount Ecm::Translations::Backend::Engine => '/backend/ecm/translations'
3
+ mount Ecm::Translations::Backend::Engine, at: '/backend/ecm/translations'
4
4
  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
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: 2016-04-02 00:00:00.000000000 Z
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.4.8
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: