ecm_cms2_backend 1.1.0 → 1.2.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: 80496e499fcebdac4d825c387b25fb5d939ad09e
4
- data.tar.gz: 9473e29ecdc52b9fc8e2d38d1ad69012872641b5
3
+ metadata.gz: 397a5e2cbfa5f7e10554bc890390c640ba128546
4
+ data.tar.gz: 41c2175f86c59e785b2f693a1c0e31285eabefb3
5
5
  SHA512:
6
- metadata.gz: cdf2c4eea39083a0446ced2dbd20fb632e04ffad9142aaaeeb33d3a2dce914e1335598f14d9cd8b2b0169c02c6ba2f5f98d851bb8719e7d35b2bd3c9450b097f
7
- data.tar.gz: 13a64e4423e1edf9512e075cfce64467c7390db3e16f026aa7a2d64fc9515650c5ab67e509c6b6cfa558a26de7964c7ea8566257b356eac24b3c48bd17fc60be
6
+ metadata.gz: 6b2e5cdf1bdc6459b54dc69126a3f9bca1afb9147032cbb9e42e9f59e8d38bee7a91a894ced028c77e9db62f9a0c12b8208070e99df12786c71ede837b837497
7
+ data.tar.gz: 1df0a2e5ff7415d85ad731ac9ab819267c31459bb7e6d202eb65d187e3c3b8f48d8c1ffd3ed6d8b11e84b15cd88d0692ebc5bdf28c09e8caf4388dde2452ad45
@@ -7,7 +7,7 @@ module Ecm::Cms::Backend
7
7
  private
8
8
 
9
9
  def permitted_params
10
- params.require(:ecm_cms_add_homepages_service).permit(locales: [])
10
+ params.require(:add_homepages_service).permit(locales: [])
11
11
  end
12
12
  end
13
13
  end
@@ -6,6 +6,6 @@ class Ecm::Cms::Backend::ContentBoxesController < Itsf::Backend::Resource::BaseC
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_content_box).permit(:name)
9
+ params.require(:content_box).permit(:name)
10
10
  end
11
11
  end
@@ -1,6 +1,4 @@
1
1
  module Ecm::Cms::Backend
2
2
  class HomeController < Itsf::Backend::HomeController
3
- def index
4
- end
5
3
  end
6
4
  end
@@ -7,7 +7,7 @@ module Ecm::Cms::Backend
7
7
  private
8
8
 
9
9
  def permitted_params
10
- params.fetch(:ecm_cms_import_partials_service, {}).permit
10
+ params.fetch(:import_partials_service, {}).permit
11
11
  end
12
12
  end
13
13
  end
@@ -8,7 +8,7 @@ class Ecm::Cms::Backend::NavigationItemsController < Itsf::Backend::Resource::Ba
8
8
  private
9
9
 
10
10
  def permitted_params
11
- params.require(:ecm_cms_navigation_item)
11
+ params.require(:navigation_item)
12
12
  .permit(:ecm_cms_navigation_id, :ecm_cms_page_id, :highlights_on, :key, :name, :parent_id, :options, :url, *Ecm::Cms::Configuration.navigation_item_properties)
13
13
  end
14
14
  end
@@ -6,7 +6,7 @@ class Ecm::Cms::Backend::NavigationsController < Itsf::Backend::Resource::BaseCo
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_navigation)
9
+ params.require(:navigation)
10
10
  .permit(:locale, :name)
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ class Ecm::Cms::Backend::PagesController < Itsf::Backend::Resource::BaseControll
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_page)
9
+ params.require(:page)
10
10
  .permit(:title, :meta_description, :body, :pathname, :basename, :locale, :format, :handler, :layout, ecm_cms_navigation_item_ids: [])
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ class Ecm::Cms::Backend::PartialsController < Itsf::Backend::Resource::BaseContr
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_partial)
9
+ params.require(:partial)
10
10
  .permit(:body, :pathname, :basename, :locale, :format, :handler)
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ class Ecm::Cms::Backend::TemplatesController < Itsf::Backend::Resource::BaseCont
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_template)
9
+ params.require(:template)
10
10
  .permit
11
11
  end
12
12
  end
@@ -1,4 +1,4 @@
1
- = table.association(:ecm_cms_navigation, url: ->(navigation_item) { navigation_path(navigation_item) })
1
+ = table.association(:ecm_cms_navigation, url: ->(navigation_item) { navigation_path(navigation_item.ecm_cms_navigation) })
2
2
  = table.column(:name) do |navigation_item|
3
3
  %span{ class: "indent indent-chars-#{navigation_item.depth * 3}"}= navigation_item.name
4
4
  = table.column :url
data/config/routes.rb CHANGED
@@ -9,14 +9,14 @@ Ecm::Cms::Backend::Engine.routes.draw do
9
9
  post :call, on: :collection
10
10
  end
11
11
 
12
- resources :content_boxes
13
- resources :navigations
14
- resources :navigation_items do
12
+ backend_resources :content_boxes
13
+ backend_resources :navigations
14
+ backend_resources :navigation_items do
15
15
  post :reposition, on: :member
16
16
  end
17
- resources :pages
18
- resources :partials
19
- resources :templates
17
+ backend_resources :pages
18
+ backend_resources :partials
19
+ backend_resources :templates
20
20
 
21
21
  root to: 'home#index'
22
22
  end
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Cms
3
3
  module Backend
4
- VERSION = '1.1.0'.freeze
4
+ VERSION = '1.2.0'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_cms2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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-10-08 00:00:00.000000000 Z
11
+ date: 2017-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails