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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1328da249899a949e4e7d177da201913aecaf158
4
- data.tar.gz: 459a36f0d40ebc9b27ba61098c48df3b90ebe6fd
3
+ metadata.gz: 06567523be1b8ea9f9c91d62dee0df15c4b85141
4
+ data.tar.gz: bbd9a634b8e1a69d6cdd93df8e8c30bd4a0c7ec7
5
5
  SHA512:
6
- metadata.gz: f6a7b61e9e07314f4d59300ee5019b6d05367712d77d4e35a8505ea2ec1721be0a7e695383e78758d770ca02b82d737b2cb0a663dc34893ce654ffe62d03902c
7
- data.tar.gz: 564b80c59f9d1628f0899d48b9cce6d06d161df7ab6b8b27f44349ee7645cc59ab1eb1f975bb3647ddd6fb826c9b8457cbda6bfb5cfebd81066e758b9dd341c3
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
- .permit(:locale, :key, :value, :interpolations, :is_proc)
32
+ .permit(:locale, :key, :value, :interpolations, :is_proc)
33
33
  end
34
34
  end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Translations
2
2
  class TranslationPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
data/config/routes.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  Ecm::Translations::Backend::Engine.routes.draw do
2
-
3
2
  resources :translations
4
3
 
5
4
  root to: 'home#index'
@@ -8,9 +8,13 @@ module Ecm
8
8
  def configure
9
9
  yield self
10
10
  end
11
-
11
+
12
12
  mattr_accessor :registered_controllers do
13
- -> {[]}
13
+ -> { [] }
14
+ end
15
+
16
+ mattr_accessor :registered_services do
17
+ -> { [] }
14
18
  end
15
19
  end
16
20
  end
@@ -4,7 +4,7 @@ module Ecm
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace Ecm::Translations::Backend
6
6
 
7
- initializer "ecm_translations_backend.asset_pipeline" do |app|
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,7 +1,7 @@
1
1
  module Ecm
2
2
  module Translations
3
3
  module Backend
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
6
6
  end
7
7
  end
@@ -30,4 +30,4 @@ module Ecm
30
30
  end
31
31
  end
32
32
  end
33
- end
33
+ end
@@ -1,14 +1,23 @@
1
- Ecm::Translations::Backend.configure do |config|
2
- # Set the resources, that will be shown in the backend menu in development
3
- # mode. This needs to be set to get a correct menu because
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
- Ecm::Translations::Backend::TranslationsController
13
- ]}
14
- end
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.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-09 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails