cmor_system 0.0.53.pre → 0.0.58.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: b539e25b84581a4cb7b6190e6cb57e478fc3a34fa1f0707158343738c0350dc1
4
- data.tar.gz: 94fc4c8454bd7b79a2435ea9f533bc27d693e8ddb79316d6333219d3e07c7766
3
+ metadata.gz: f59201e3d545b0db67aaefa92561a45a6a6d2134b92e014cc046d83de33ed046
4
+ data.tar.gz: a1890cbb9887f7ec1dc7166faa923660732b58b309026530523f39211ca31b11
5
5
  SHA512:
6
- metadata.gz: 4c57f0cbf77ca16f2f8993a19148d77f8fc58cefca9ffa5b0fd63d80b99e4c23d6749eb24771a33c14f0e935d3aa29643b79144df85c00bb46969bd40aa68a16
7
- data.tar.gz: 6c2107016a577b41d380e2c864382fb20e0c042fe08799ae6249ea448760740a69154995291005efdd349f693348c9ea30bc18a616a40d157d0f96be88363881
6
+ metadata.gz: 288ca20cf67e419c6245333a0264782e1359f209c35f9983b618f92c32bec3b21745c27071827afebc5eb1700490d4f9d7640461abbc5a7c0df69af79686267e
7
+ data.tar.gz: 6e0672f779b605db0b24409e6ab45325141c8858897110857d38eefff5f1e720277c56b77051113434e168e05e463778753ab64f249cd64559177e9d92ac5b07
@@ -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.53.pre
4
+ version: 0.0.58.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-03-26 00:00:00.000000000 Z
11
+ date: 2020-07-17 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.53.pre
33
+ version: 0.0.58.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.53.pre
40
+ version: 0.0.58.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.53.pre
47
+ version: 0.0.58.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.53.pre
54
+ version: 0.0.58.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.2
417
+ rubygems_version: 3.1.4
418
418
  signing_key:
419
419
  specification_version: 4
420
420
  summary: Cmor System Module.