conjoin 0.0.66 → 0.0.67
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 +4 -4
- data/lib/conjoin/form_builder.rb +17 -2
- data/lib/conjoin/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a74be5ab58541ceb361105db3286752bb6970ec
|
|
4
|
+
data.tar.gz: 0f24c47cc9964e64b2dc74172d140bd03ba981f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d32285cd176d00bf8233d2dab826ab543a37e5ea17826a32d7bc28f10e0d79849aa82858fefa3219a39693db55bd2736b9bd394aa1a4344ae032b024d2e3725c
|
|
7
|
+
data.tar.gz: ba0b1941b6cbe7e0ebe343f5cc1ac18079016ea70b2b4d612ca800ad767e957492098814ec9845f0a2f1b52d6679f47a245c8d9c005ade81072bf07e164b2b97
|
data/lib/conjoin/form_builder.rb
CHANGED
|
@@ -109,7 +109,7 @@ module Conjoin
|
|
|
109
109
|
begin
|
|
110
110
|
record_class = record.class.model_name.name.constantize
|
|
111
111
|
rescue Exception
|
|
112
|
-
m = models.join('.').gsub
|
|
112
|
+
m = models.join('.').gsub(/_attributes/, '')
|
|
113
113
|
raise "No value for #{field_name} as #{m} is nil."
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -339,7 +339,22 @@ module Conjoin
|
|
|
339
339
|
end
|
|
340
340
|
|
|
341
341
|
def display
|
|
342
|
-
|
|
342
|
+
append_button = options.delete :append_button
|
|
343
|
+
|
|
344
|
+
if append_button
|
|
345
|
+
mab do
|
|
346
|
+
div class: 'input-group' do
|
|
347
|
+
input options
|
|
348
|
+
div class: 'input-group-btn' do
|
|
349
|
+
button class: 'btn btn-primary', type: append_button[:type] || 'button', 'on-click-get' => append_button[:href] do
|
|
350
|
+
text append_button[:text]
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
else
|
|
356
|
+
mab { input options }
|
|
357
|
+
end
|
|
343
358
|
end
|
|
344
359
|
end
|
|
345
360
|
end
|
data/lib/conjoin/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: conjoin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.67
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- cj
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-06-
|
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cuba
|