administrador 0.0.17.pre → 0.0.18.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: 86b443c35196810a755cb70ca03971ce3d055c805ac7e567a9746063eb5371dc
4
- data.tar.gz: 2eee501bef14e9c049afc588cc0fb97b57841cdf14ab412adf0e5f68f1907d99
3
+ metadata.gz: 431f521918445d34b9f07aabf3b2f549c4369d1d7aff2087025056173237db15
4
+ data.tar.gz: 76d6e4223f62d62a178778d49ee5b3a336217a0b7887b4e8b17ff6482ded99c7
5
5
  SHA512:
6
- metadata.gz: 02cf7ebca6f493ebc00655c1abb958cdae881ef7ca507e8dae8ded1eee15b036a23f379bda7e39139cbb5f8bf86d756a6fd2f57f1f046899561176fd2349eebc
7
- data.tar.gz: 3f1b6511f0d89979c91137f1d20d9127a5b36f0d9a2f836bc77c9cb0ad299e51474a11343f56f9c7cf2002f02c0ec3502dd0d20edf83af167e760978a7c49c39
6
+ metadata.gz: f0be5c4dd719224c102de42e807176c26c9c9337ccd8281222491409e4eb7802ae400928db4d91b93351f633a6f05f3d62e93909dc9fa12794b0a7f78e977ff1
7
+ data.tar.gz: 1436c9cb8b7e9674c3db76b06f72250ef1a98296466743b9fc8c32369ad49fcb74a119bf32546d755003d24291c3037fe2984ee5e264a54c5ebaafca5bc89590
@@ -20,7 +20,7 @@ module Administrador
20
20
  begin
21
21
  c.url_for(*routable)
22
22
  true
23
- rescue ActionController::UrlGeneratrionError
23
+ rescue ActionController::UrlGenerationError
24
24
  false
25
25
  end
26
26
  end
@@ -1,6 +1,9 @@
1
1
  .ml-auto
2
- = link_to(url_for([resource]), class: 'destroy btn btn-danger btn-circle btn-lg', method: :delete, 'data-confirm': I18n.t('administrador.controller.confirmations.destroy')) do
3
- %i.fas.fa-fire
2
+ - if available_rest_actions.include?(:destroy)
3
+ = link_to(url_for([resource]), class: 'destroy btn btn-danger btn-circle btn-lg', method: :delete, 'data-confirm': I18n.t('administrador.controller.confirmations.destroy')) do
4
+ %i.fas.fa-fire
4
5
 
5
- = link_to([:edit, resource], class: 'btn btn-success btn-circle btn-lg') do
6
- %i.fas.fa-edit
6
+
7
+ - if available_rest_actions.include?(:edit)
8
+ = link_to([:edit, resource], class: 'btn btn-success btn-circle btn-lg') do
9
+ %i.fas.fa-edit
@@ -1,3 +1,3 @@
1
1
  module Administrador
2
- VERSION = '0.0.17.pre'.freeze
2
+ VERSION = '0.0.18.pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrador
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17.pre
4
+ version: 0.0.18.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: 2019-07-11 00:00:00.000000000 Z
11
+ date: 2019-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails