tramway-export 0.1.1 → 0.1.2

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: e9ff476d80bb0e6c0d3169ae79cc36a8310eab02aff7f59ac66a54efaa2c4497
4
- data.tar.gz: 98a38ab02ee16f7bd30305e4adedbc4dfbe956d496ade6f0176a425b682b819b
3
+ metadata.gz: 6efec3400a742beb5e3e85a4f0a19270d5cb2cbbea6168378bdd99fbb14c069e
4
+ data.tar.gz: 999acb1d3f85e7b4e3f707ffc69c231e5f2e995e4cfd6e65aefa1473cc00c785
5
5
  SHA512:
6
- metadata.gz: 054f373a769da7f602a92ff1f9ece42e52628f083b5e969ff71df9201c9e16b2fe3f9fad8e992acb2b635394f1d10b6206232d8c8c95810fb9285d07b5c224f0
7
- data.tar.gz: 2ac3d9481e935acf14cb13b22f57d54e20428b9ba3f5bf141869680d02c0df9dd394128dda9382c26ecbb2352c3f35281e2ac8d681389cfb8fa82ab2428d7e0a
6
+ metadata.gz: f0286a74912d48df5a94df645396eed603e347fd1c7df2b298818392636a3a084f6df7412a237ef1d2decc1fdb62c234a66622b0469dc8b20032d50934ac6204
7
+ data.tar.gz: 87a08b8382f726068f612d30096f27b977c018a0bf9218944c73f14da39fbe2f1e0ddb50179cf5bdffe3486471dec1882b51e844949931292e137fb11de71b8d
@@ -1,6 +1,6 @@
1
1
  - if Tramway::Export.exportable_model? model_class, project: (@application_engine || @application.name)
2
2
  - model_name = model_class.name.underscore
3
- - id = "export-#{model_name}"
3
+ - id = "export-#{model_name.gsub('/', '_')}"
4
4
  .btn-group{ role: :group }
5
5
  %button{ id: id, type: :button, class: 'btn btn-primary dropdown-toggle', data: { toggle: :dropdown, aria: { haspopup: :true, expanded: :false } } }
6
6
  = fa_icon(:download)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Export
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
@@ -16,6 +16,10 @@ module Tramway
16
16
 
17
17
  @exportable_models[project.to_sym]&.include? model_class
18
18
  end
19
+
20
+ def exportable_models
21
+ @exportable_models
22
+ end
19
23
  end
20
24
  end
21
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-export
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov