ecm_links2_backend 2.0.4 → 2.0.5

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: c6342c491c1bc388e9e67bccb955b954e2fb8509
4
- data.tar.gz: 2d0c636e273cf50001d1dec6ead2b04ade2f260e
3
+ metadata.gz: c0202987085527b94120e0817f0e063d62e3f3cd
4
+ data.tar.gz: 0ae4540b091ff476368a86fa1407b9514f654327
5
5
  SHA512:
6
- metadata.gz: e409a8ce49ab35bc622278575f354e878f58c8aec8dd9e3f57d9806d4b0cb774a49046efd5f93b6769204e4c719b9307f060baaf547779d9cbd818f0408b297d
7
- data.tar.gz: 59b20a70ca360ea266b8fcc9271e0bb74f66c8d9c57d24d5c6b7986525df2facf9a96fd7f80e56c6fbd7f65658a596bc438dbe330dc2d5059c959f716b0090be
6
+ metadata.gz: 253a90ac2d8f2ba22b0525a15b64fd55528923a2d4e47390a42a0eecb82ebe69ce9a4be83733d973b70ba6c1533848e87c166936a8fcf521fb739225d735088f
7
+ data.tar.gz: 63348bca177c9c4aafb8c8ea306ea56324d9a09e3eb6a8c23710bba9c34924aacd5d18491d628e8c1f246ec532f8f3d3e2d8766709763c1a15ec36b8a45cbe12
@@ -1,13 +1,21 @@
1
- class Ecm::Links::Backend::CategoriesController < Itsf::Backend::Resource::BaseController
2
- def self.resource_class
3
- Ecm::Links::Category
4
- end
1
+ module Ecm
2
+ module Links
3
+ module Backend
4
+ class CategoriesController < Itsf::Backend::Resource::BaseController
5
+ include ResourcesController::Sorting
6
+
7
+ def self.resource_class
8
+ Ecm::Links::Category
9
+ end
5
10
 
6
- private
11
+ private
7
12
 
8
- def permitted_params
9
- params
10
- .require(:category)
11
- .permit(:parent_id, :locale, :name, :markup_language, :short_description, :long_description, :link_footer_column)
13
+ def permitted_params
14
+ params
15
+ .require(:category)
16
+ .permit(:parent_id, :locale, :name, :markup_language, :short_description, :long_description, :link_footer_column)
17
+ end
18
+ end
19
+ end
12
20
  end
13
- end
21
+ end
@@ -1,13 +1,21 @@
1
- class Ecm::Links::Backend::LinksController < Itsf::Backend::Resource::BaseController
2
- def self.resource_class
3
- Ecm::Links::Link
4
- end
1
+ module Ecm
2
+ module Links
3
+ module Backend
4
+ class LinksController < Itsf::Backend::Resource::BaseController
5
+ include ResourcesController::Sorting
6
+
7
+ def self.resource_class
8
+ Ecm::Links::Link
9
+ end
5
10
 
6
- private
11
+ private
7
12
 
8
- def permitted_params
9
- params
10
- .require(:link)
11
- .permit(:category_id, :name, :url, :markup_language, :description)
13
+ def permitted_params
14
+ params
15
+ .require(:link)
16
+ .permit(:category_id, :name, :url, :markup_language, :description)
17
+ end
18
+ end
19
+ end
12
20
  end
13
21
  end
@@ -6,4 +6,4 @@
6
6
  = table.column :long_description, sort: true, class: 'truncate-chars truncate-chars-30'
7
7
  = table.column :link_footer_column, sort: true, class: 'truncate-chars truncate-chars-30'
8
8
  = table.column :links_count, sort: true
9
- = table.timestamps(format: :short, sort: true)
9
+ = table.timestamps(sort: true)
@@ -2,5 +2,5 @@
2
2
  = table.association :category, sort: true, link_to: ->(resource) { resource.category }
3
3
  = table.column :name, sort: true, class: 'truncate-chars truncate-chars-30'
4
4
  = table.column :description, sort: true, class: 'truncate-chars truncate-chars-30'
5
- = table.timestamps format: :short, sort: true
5
+ = table.timestamps sort: true
6
6
  = table.column(:link_actions) { |link| link_to(t('.visit'), link.url, class: 'btn btn-xs btn-primary') }
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Links
3
3
  module Backend
4
- VERSION = '2.0.4'.freeze
4
+ VERSION = '2.0.5'.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_links2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
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: 2018-03-11 00:00:00.000000000 Z
11
+ date: 2018-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails