tramway 3.1.2.1 → 3.1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3132f9d101d25cd7cb9cacf33921c0d10b70bce3fed987b4d50ade050611d40c
4
- data.tar.gz: d6a2e0b3b9b5548d3ddb393ea3b29e005571dbfbe64a62d0920d17e206e6323f
3
+ metadata.gz: b808bd77758d7995826c1f69fb90dbac277d9b31ad2008caddf938bbe14e81cc
4
+ data.tar.gz: 12b47f9c4880fcfeec5b64e1c5cc9aaf87e72ed2e618c08b01300977e58c9025
5
5
  SHA512:
6
- metadata.gz: 8c630a5d57c0ef7e1c4a1d656975dffd3aa51637439cc16a816198b15d90385b129c7c8b4178fb83e4c1fb1fdaaa46e9de2f77e57835f70994dfc13cf6ee7896
7
- data.tar.gz: bfc68e7d6f29b8a5060dd2235a3d7d18afe7bcf33330882d8b8104fd3d2dbb65f2d9880e94e66fff003f66706f37d2a659d1cfb6c3b858e6ab7e18f7771f67da
6
+ metadata.gz: be0192fd85de34e28c48ac47c3799b185e69282c37c3921fc778012ab87465ed0ddc53c363552e57f174fc2aebf6ae0745ca1d6abef0ddecd39e5af16103cbd8
7
+ data.tar.gz: d28e20eaef6fe9cb8c2ecf042fe719c76b054a70d52619bb79c94fce6ecd595be2d187b2ec000bc4273af7fae2c5b30a5ba2c2cd15a9a32a0c54f3c2b8a92a0f
@@ -48,7 +48,8 @@ module Tramway
48
48
  @record = tramway_form model_class.new, namespace: entity.namespace
49
49
 
50
50
  if @record.submit params[model_class.model_name.param_key]
51
- redirect_to public_send(entity.show_helper_method, @record.id), notice: t('tramway.notices.created')
51
+ redirect_to Tramway::Engine.routes.url_helpers.public_send(entity.show_helper_method, @record.id),
52
+ notice: t('tramway.notices.created')
52
53
  else
53
54
  render :new
54
55
  end
@@ -58,7 +59,8 @@ module Tramway
58
59
  @record = tramway_form model_class.find(params[:id]), namespace: entity.namespace
59
60
 
60
61
  if @record.submit params[model_class.model_name.param_key]
61
- redirect_to public_send(entity.show_helper_method, @record.id), notice: t('tramway.notices.updated')
62
+ redirect_to Tramway::Engine.routes.url_helpers.public_send(entity.show_helper_method, @record.id),
63
+ notice: t('tramway.notices.updated')
62
64
  else
63
65
  render :edit
64
66
  end
@@ -70,7 +72,8 @@ module Tramway
70
72
 
71
73
  @record.destroy
72
74
 
73
- redirect_to public_send(entity.index_helper_method), notice: t('tramway.notices.deleted')
75
+ redirect_to Tramway::Engine.routes.url_helpers.public_send(entity.index_helper_method),
76
+ notice: t('tramway.notices.deleted')
74
77
  end
75
78
 
76
79
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tramway
4
- VERSION = '3.1.2.1'
4
+ VERSION = '3.1.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2.1
4
+ version: 3.1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kalashnikovisme