tramway-admin 1.29.1.3 → 1.29.1.4

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: 927a1a10f6c0e13851b6e287756f6b0b9163743c095e4b72f584c3f09fda8c9a
4
- data.tar.gz: 65b6707f1bbd0ecdfaf6908aa97cd833c08477dc2bcebff362c972f83435147e
3
+ metadata.gz: b59a73d88e6909a7e355dd778bae9f36e5fd6f28b981f548aea85ab07c4ecedd
4
+ data.tar.gz: 1f0bfa52f18e76ae53b3859fa820e617073f7efcb4821ae429211809ebbef80d
5
5
  SHA512:
6
- metadata.gz: 1ffffabf9c417eab079aa43390860d48e13da59133ab0bd04926ea9a4e783f6911a63d153e0d843f9ca386082c2c2aa3d4c99bb14162f1b4a28c4a9e2e413361
7
- data.tar.gz: d760a8a9699b87815566c8e052f69386efb696927e409d20063eb5c23cb55629515877526a484b1adca531b526aaacc742554f131c353243612868830a26614e
6
+ metadata.gz: c003742f10c1c1fce366e32b444f60137f64b7fbc823da6d5b7e4887c012345b834ee9355eeccd7ef3f8d79548526b0d7188f3b013bd90437550d6472a3f9948
7
+ data.tar.gz: a7fd90211fb9c081484e1032d1af32fc3aa018d38f1f2122b3097d8105d210c96a9c27935fcbbb41d992afa363df0cd4c571a621f1401cc078b59161d8f26c96
@@ -6,7 +6,7 @@ module Tramway::Admin
6
6
  if model_class.active.first.present?
7
7
  @singleton = decorator_class.decorate model_class.active.first
8
8
  else
9
- @singleton_form = form_class.new model_class.new
9
+ @singleton_form = admin_form_class.new model_class.new
10
10
  render :new
11
11
  nil
12
12
  end
@@ -17,7 +17,7 @@ module Tramway::Admin
17
17
  end
18
18
 
19
19
  def create
20
- @singleton_form = admin_form_class.new
20
+ @singleton_form = admin_form_class.new model_class.new
21
21
  if @singleton_form.submit params[:singleton]
22
22
  redirect_to params[:redirect] || singleton_path(model: params[:model])
23
23
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Admin
5
- VERSION = '1.29.1.3'
5
+ VERSION = '1.29.1.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.1.3
4
+ version: 1.29.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov