cmor_files_backend 0.0.44.pre → 0.0.45.pre

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
  SHA256:
3
- metadata.gz: 51a5cf25a5260d230e7e4759ce3feff38b70481abf11e81d5d7c3b33f4fd8f73
4
- data.tar.gz: 8ec1daa0ca6b73e40d048e0e627fea08a7e532f187369add3103e3f3e82dd976
3
+ metadata.gz: 1aabc265b0d3824de5f8dc3805d5784c2846c282b753e25cfc743034a58f255c
4
+ data.tar.gz: 630ff81b263f9fc40eea8d1bb625757ff37a3195609ea67ce9ff1adbd025167e
5
5
  SHA512:
6
- metadata.gz: d08e515d2260b1d20945a0cb6e3da409f0bc8cfce45decf63824430336bc34e2f168fc46d240ae02f54b0e36efba470d9cd353c9adb983346e750e4a3f684162
7
- data.tar.gz: d56fe404de927676ad2ae97e20eab2728b7c0f8f9e7a27dac9c2dc4dd0e18f0f4042806ec5cd48f21da7711ec2c4da4367bc26f89ebb13c9fc3a9c9890dab9c8
6
+ metadata.gz: 80a99b65025d8ea5bee774eabcc0d2aedee4ca5b564040c22e84e61b5021bcf040e33928451724116948f122620f708300789dd9c7512551e9bd7d673c138b2c
7
+ data.tar.gz: eb3a6df42c5fafa75905e4e0ccaec06ea68dbd481d47e8a07536a3807079e2bdc8e91a6c2519b867052ca3b8e3158ff3402f70c73d1209595c43ec3ac3f6af97
@@ -2,9 +2,9 @@ module Cmor
2
2
  module Files
3
3
  module Backend
4
4
  class FileDetailsController < Cmor::Core::Backend::ResourcesController::Base
5
- include Rao::ResourcesController::SortingConcern
6
-
7
- helper Twitter::Bootstrap::Components::Rails::V3::ComponentsHelper
5
+ include Rao::ResourcesController::ActsAsListConcern
6
+ include Rao::ResourcesController::ActsAsPublishedConcern
7
+ include Rao::ResourcesController::FriendlyIdConcern
8
8
 
9
9
  def self.resource_class
10
10
  Cmor::Files::FileDetail
@@ -2,7 +2,9 @@ module Cmor
2
2
  module Files
3
3
  module Backend
4
4
  class FoldersController < Cmor::Core::Backend::ResourcesController::Base
5
+ include Rao::ResourcesController::ActsAsListConcern
5
6
  include Rao::ResourcesController::ActsAsPublishedConcern
7
+ include Rao::ResourcesController::FriendlyIdConcern
6
8
 
7
9
  def self.resource_class
8
10
  Cmor::Files::Folder
@@ -1,5 +1,5 @@
1
1
  = table.batch_actions( actions: { destroy: destroy_many_attachments_path })
2
- = table.id
2
+ = table.acts_as_list_actions
3
3
  = table.column :filename do |resource|
4
4
  - resource.asset.blob.filename
5
5
  = table.column :blob_content_type do |resource|
@@ -11,3 +11,4 @@
11
11
  = table.column :blob_created_at do |resource|
12
12
  - I18n.l(resource.asset.blob.created_at, format: :short)
13
13
  = table.timestamp :created_at
14
+ = table.acts_as_published_actions
@@ -1,4 +1,5 @@
1
1
  = table.batch_actions( actions: { destroy: destroy_many_folders_path, publish: publish_many_folders_path, unpublish: unpublish_many_folders_path })
2
+ = table.acts_as_list_actions
2
3
  = table.id sort: true
3
4
  = table.column :name, sort: true
4
5
  = table.column :assets_count
data/config/routes.rb CHANGED
@@ -4,14 +4,19 @@ Cmor::Files::Backend::Engine.routes.draw do
4
4
  end
5
5
 
6
6
  resources :folders do
7
- post :toggle_published, on: :member
7
+ acts_as_list
8
+ acts_as_published
8
9
  post :destroy_many, on: :collection
9
10
  post :unpublish_many, on: :collection
10
11
  post :publish_many, on: :collection
11
12
  end
12
13
 
13
14
  resources :file_details do
15
+ acts_as_list
16
+ acts_as_published
14
17
  post :destroy_many, on: :collection
18
+ post :unpublish_many, on: :collection
19
+ post :publish_many, on: :collection
15
20
  end
16
21
 
17
22
  root to: 'home#index'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_files_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44.pre
4
+ version: 0.0.45.pre
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: 2020-01-29 00:00:00.000000000 Z
11
+ date: 2020-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.0
19
+ version: 5.2.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.0
26
+ version: 5.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cmor_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.44.pre
33
+ version: 0.0.45.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.44.pre
40
+ version: 0.0.45.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cmor_core_backend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.44.pre
47
+ version: 0.0.45.pre
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.44.pre
54
+ version: 0.0.45.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -324,14 +324,14 @@ dependencies:
324
324
  requirements:
325
325
  - - '='
326
326
  - !ruby/object:Gem::Version
327
- version: 0.0.44.pre
327
+ version: 0.0.45.pre
328
328
  type: :runtime
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - '='
333
333
  - !ruby/object:Gem::Version
334
- version: 0.0.44.pre
334
+ version: 0.0.45.pre
335
335
  description:
336
336
  email:
337
337
  - roberto@vasquez-angel.de