eac_rails_utils 0.29.5 → 0.30.0
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: 30d7606c9a5befd9228c3ae65c4d02f54c4a19dd222b5aa88f78b4972f65ce5a
|
|
4
|
+
data.tar.gz: 668a1c72f12bb6661043823740d86dfc4b6cbefd6ddb13a9bd9f005602684d49
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c312205a3d2aa0a38f2056bf790cfefaa6c3181a1b474574e4280e64aa5a3cbcc7e76aed272b140c44723b1cf44a7899689d9c490f877ba616cd1400ffc2355d
|
|
7
|
+
data.tar.gz: 73bdc9400d412d9ead1185c7291e2695690614b6044c5f7215b23ae13e427cb33668f8b5897680a76cda78383d72e3ab7ac7009fc6aeff82723d033e298ee06e
|
|
@@ -4,18 +4,18 @@ module EacRailsUtils
|
|
|
4
4
|
module CommonFormHelper
|
|
5
5
|
class FormBuilder
|
|
6
6
|
module FieldsFor
|
|
7
|
-
def fields_for(association, &
|
|
7
|
+
def fields_for(association, &)
|
|
8
8
|
fieldset(association) do
|
|
9
|
-
nested_fields(association, &
|
|
9
|
+
nested_fields(association, &) << add_link(association)
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
private
|
|
14
14
|
|
|
15
|
-
def nested_fields(association, &
|
|
15
|
+
def nested_fields(association, &)
|
|
16
16
|
form.nested_fields_for(association) do |nested_form|
|
|
17
17
|
helper.content_tag(:div, class: 'nested_form_row') do
|
|
18
|
-
helper.capture(FormBuilder.new(nested_form, helper), &
|
|
18
|
+
helper.capture(FormBuilder.new(nested_form, helper), &) <<
|
|
19
19
|
remove_link(nested_form)
|
|
20
20
|
end
|
|
21
21
|
end
|
|
@@ -9,14 +9,14 @@ module EacRailsUtils
|
|
|
9
9
|
include ::ActionView::Helpers::FormHelper
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def common_form(model_instance, options = {}, &
|
|
12
|
+
def common_form(model_instance, options = {}, &)
|
|
13
13
|
submit_label = options.delete(:submit_label)
|
|
14
14
|
options[:html] ||= {}
|
|
15
15
|
options[:html][:class] = 'CommonFormHelper'
|
|
16
16
|
form_for(model_instance, options) do |form|
|
|
17
17
|
fb = FormBuilder.new(form, self)
|
|
18
18
|
errors(model_instance) <<
|
|
19
|
-
capture(fb, &
|
|
19
|
+
capture(fb, &) <<
|
|
20
20
|
errors_not_showed(model_instance, fb.field_errors_showed) <<
|
|
21
21
|
form.submit(submit_label, class: 'btn btn-primary')
|
|
22
22
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_rails_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.30.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- E.A.C.
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bootstrap-sass
|
|
@@ -124,22 +123,14 @@ dependencies:
|
|
|
124
123
|
requirements:
|
|
125
124
|
- - "~>"
|
|
126
125
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: '0.
|
|
128
|
-
- - ">="
|
|
129
|
-
- !ruby/object:Gem::Version
|
|
130
|
-
version: 0.13.1
|
|
126
|
+
version: '0.14'
|
|
131
127
|
type: :development
|
|
132
128
|
prerelease: false
|
|
133
129
|
version_requirements: !ruby/object:Gem::Requirement
|
|
134
130
|
requirements:
|
|
135
131
|
- - "~>"
|
|
136
132
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '0.
|
|
138
|
-
- - ">="
|
|
139
|
-
- !ruby/object:Gem::Version
|
|
140
|
-
version: 0.13.1
|
|
141
|
-
description:
|
|
142
|
-
email:
|
|
133
|
+
version: '0.14'
|
|
143
134
|
executables: []
|
|
144
135
|
extensions: []
|
|
145
136
|
extra_rdoc_files: []
|
|
@@ -231,10 +222,8 @@ files:
|
|
|
231
222
|
- lib/eac_rails_utils/rspec/setup/models_utils.rb
|
|
232
223
|
- lib/eac_rails_utils/url_helper.rb
|
|
233
224
|
- lib/eac_rails_utils/version.rb
|
|
234
|
-
homepage:
|
|
235
225
|
licenses: []
|
|
236
226
|
metadata: {}
|
|
237
|
-
post_install_message:
|
|
238
227
|
rdoc_options: []
|
|
239
228
|
require_paths:
|
|
240
229
|
- lib
|
|
@@ -249,8 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
249
238
|
- !ruby/object:Gem::Version
|
|
250
239
|
version: '0'
|
|
251
240
|
requirements: []
|
|
252
|
-
rubygems_version: 3.
|
|
253
|
-
signing_key:
|
|
241
|
+
rubygems_version: 3.6.9
|
|
254
242
|
specification_version: 4
|
|
255
243
|
summary: Código reutilizável para as aplicações Rails da E.A.C..
|
|
256
244
|
test_files: []
|