tramway-core 4.0.2.1 → 4.1

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: 071cf2ccd054e5bde3e9ecc232476ec1a48d2aa4e3d51246befdd770a6e89876
4
- data.tar.gz: 7aa40b3777e070784dd0f0ca57baf12b4fd6378e5911b1e3dfa25ec6b427e24f
3
+ metadata.gz: f634b186e0094a985e359e2a5db0d7592a02ac672a533ef6e015afb54c26d827
4
+ data.tar.gz: d2988cbec5207fdcc89e9f5c51a0c7f9e74c440e9b0212f966428b9ad12cf9c0
5
5
  SHA512:
6
- metadata.gz: 8ff54066670f690934e828bd599b8cbeac5ad3cf27c43d2d56f54425f0bbf38708ae9d0bea74983d35a8b08a6a5393ed88810bd5e37672290653293dcb170919
7
- data.tar.gz: 521157e341cc6eada7c4c1c4e97b620e5233dc28d15adbe148d53daa0b397d138b4084d69228379cd6a1e45e5fe7bf065f19181080f23d3ee00fc828b4bf8636
6
+ metadata.gz: 5f6f5c885690572f69a841bef125dcef60046c7b4756e24b9fd1cf1b761977e3a89df137257d3dd9d5d505f834f0f443c823640563ee06100c22a0f2356facbf
7
+ data.tar.gz: c4f0e2dddf630c3fb370c2b4b4f58836296f39b54745a933c4accab995ad7ff269ba321e2b5235259f439f7c29f440aa463b346b1eb35928cd2f630de7ee0243
@@ -35,6 +35,7 @@ class Tramway::Core::ApplicationForm
35
35
  class << self
36
36
  include Tramway::Core::ApplicationForms::AssociationClassHelpers
37
37
  include Tramway::Core::ApplicationForms::ConstantClassActions
38
+ include Tramway::Core::ApplicationForms::Frontend
38
39
 
39
40
  delegate :defined_enums, to: :model_class
40
41
 
@@ -1,9 +1,9 @@
1
1
  module Tramway::Core::ApplicationForms::Frontend
2
2
  def react_component(on = false)
3
- @@react_component = on
3
+ @react_component = on
4
4
  end
5
5
 
6
6
  def is_react_component?
7
- @@react_component ||= false
7
+ @react_component ||= false
8
8
  end
9
9
  end
@@ -20,6 +20,8 @@
20
20
  = form.association property, **association_params(**input_params).merge(as: :hidden)
21
21
  - when :polymorphic_association
22
22
  = form.input property, **polymorphic_association_params(**input_params.merge(value: value))
23
+ - when :react_component
24
+ = react_component "#{property.camelize}Input", value: value
23
25
  - else
24
26
  - options = input_params[:options] || {}
25
27
  = form.input property, **simple_params(**input_params.merge(type: type)).merge(options)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Core
5
- VERSION = '4.0.2.1'
5
+ VERSION = '4.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2.1
4
+ version: '4.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov