cmor_system 0.0.54.pre → 0.0.55.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: e9391aa6277d4af247c3f2da7857416bf9064e307f0816833aad84613d2dd4ae
4
- data.tar.gz: 3da21040335e87684b6a3847bc86771b9133aeec63b3e4abe89a1d7e89d9dbc2
3
+ metadata.gz: b4c05144e47572d438bd34e070455a52a958f6ed16677e1de8d9571e0a5985c3
4
+ data.tar.gz: a6707c5f3ddc99be8439af4ea5b36b81e65bc04889b2de90fb4d24b71c47fc34
5
5
  SHA512:
6
- metadata.gz: 1274b3ddd022f114bdd111f430ddda6dd85cf41224c85fe72c472a9067df6966062d1545b57e095b5c5c1db8c7a0a1560855ac6eadca07b7330c5097ff0753a2
7
- data.tar.gz: 8aee9b64684668214b070c60bd4f904787bae09522c7e21d860d292c731d269f67ac6359832193e77477f7f0c1117e6f6566c3f783b36330bbe8ca22df1cecf4
6
+ metadata.gz: 4289be1cddccfb1cfe195d92fb93cde66048244e71e2e76445a5b270e8674472f3d05fc2ce0601de9b3c2d090c20b486dec5f543bc339354e03c7813fa541890
7
+ data.tar.gz: fa0d0457c196ba81544c45f16a22f396f8574b268e44594fc905e6642021ac1abbef5bbcd42cc51bd7f56ad0ae6234ce795835aed688e54da77732949cc3f16a
@@ -5,9 +5,9 @@ module Cmor
5
5
  ::Delayed::Backend::ActiveRecord::Job
6
6
  end
7
7
 
8
- # def self.available_rest_actions
9
- # %i(index show edit update)
10
- # end
8
+ def self.available_rest_actions
9
+ %i(index show edit update destroy)
10
+ end
11
11
 
12
12
  private
13
13
 
@@ -1,7 +1,16 @@
1
1
  = table.column :name
2
- = table.column :record
2
+ = table.association :record do |resource|
3
+ - capture_haml do
4
+ - begin
5
+ - engine_name = resource.record.class.name.deconstantize.underscore.gsub("/", "_")
6
+ - engine_name = 'main_app' if engine_name.empty?
7
+ - url = send(engine_name).polymorphic_path(resource.record)
8
+ = link_to(url) do
9
+ = administrador_helper(self).label_for(resource.record)
10
+ - rescue NameError => e
11
+ = "#{resource.record_type}##{resource.record_id}"
3
12
  = table.column :blob do |resource|
4
13
  - link_to(resource.blob.filename, [:active_storage, resource.blob])
5
- = table.column :created_at
14
+ = table.timestamp :created_at
6
15
  = table.column :additional_actions do |resource|
7
16
  - link_to(t('.download'), main_app.url_for(resource.blob), class: 'btn btn-primary btn-xs')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.54.pre
4
+ version: 0.0.55.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-05-20 00:00:00.000000000 Z
11
+ date: 2020-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.54.pre
33
+ version: 0.0.55.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.54.pre
40
+ version: 0.0.55.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.54.pre
47
+ version: 0.0.55.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.54.pre
54
+ version: 0.0.55.pre
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -414,7 +414,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
414
414
  - !ruby/object:Gem::Version
415
415
  version: 1.3.1
416
416
  requirements: []
417
- rubygems_version: 3.1.3
417
+ rubygems_version: 3.1.4
418
418
  signing_key:
419
419
  specification_version: 4
420
420
  summary: Cmor System Module.