tramway-core 1.9.9.3 → 1.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b08296f36eba6c2256aa4bc249079594908d19ffce824b48dfd030ec1b341fe
|
4
|
+
data.tar.gz: 83691f53d85a8e9f4fee579f0ec5730f6bd580e120d53a8f71dc6dd2c3f8513f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb06a2c75fd61fdb9361ff3fb93cc8358796481072b299c4e2a590e2b791cbeb78a6ab91f919299f3c6ed5c7fc6225e201e35fb4dcfa1355b2decb3b9c34e831
|
7
|
+
data.tar.gz: 50978522df00c312000353c928aef6face72b7b9dbeb44be24c28dce54fc8d72cc00213a27dff5cc9338f8e37cf9522615956e599a4c6417f236a8355d619c9a
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Tramway::Core::ExtendedApplicationForm < Tramway::Core::ApplicationForm
|
2
|
+
class << self
|
3
|
+
def properties(*args)
|
4
|
+
@@extendable_properties = args
|
5
|
+
super(*args)
|
6
|
+
end
|
7
|
+
|
8
|
+
def new(model)
|
9
|
+
@@extendable_properties.each do |prop|
|
10
|
+
unless model.try prop
|
11
|
+
model.class.define_method prop do
|
12
|
+
end
|
13
|
+
model.class.define_method "#{prop}=" do |value|
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
super
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/tramway/core.rb
CHANGED
data/lib/tramway/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.10'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reform-rails
|
@@ -342,6 +342,7 @@ files:
|
|
342
342
|
- app/decorators/tramway/core/concerns/attributes_decorator_helper.rb
|
343
343
|
- app/forms/tramway/core/application_form.rb
|
344
344
|
- app/forms/tramway/core/extendable_form.rb
|
345
|
+
- app/forms/tramway/core/extended_application_form.rb
|
345
346
|
- app/forms/tramway/core/form_creator.rb
|
346
347
|
- app/helpers/tramway/core/title_helper.rb
|
347
348
|
- app/inputs/date_picker_input.rb
|