conjoin 0.0.66 → 0.0.67

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a890f2802eb442820ad0bed21b3374b1ebb8bddb
4
- data.tar.gz: 89df6df273c4e1c939b958fb1b5a31c8bb0b98a7
3
+ metadata.gz: 3a74be5ab58541ceb361105db3286752bb6970ec
4
+ data.tar.gz: 0f24c47cc9964e64b2dc74172d140bd03ba981f7
5
5
  SHA512:
6
- metadata.gz: 54ba3dd8e93065c37a10ba2d0bb7e22aed09f1c0042cdc6f2e986813a582aac8582dd16f74680f74630f6cfa120d7ad9cde7947abbbfbe885a434142d4d4fa07
7
- data.tar.gz: 3d4ab47526588c51709aea771ccddc821a673ed67b71afab76cdd7f0c9e38c876ba455e9a766a745aa7fd68458c571157f7c29868a643139823c7cde5a94da06
6
+ metadata.gz: d32285cd176d00bf8233d2dab826ab543a37e5ea17826a32d7bc28f10e0d79849aa82858fefa3219a39693db55bd2736b9bd394aa1a4344ae032b024d2e3725c
7
+ data.tar.gz: ba0b1941b6cbe7e0ebe343f5cc1ac18079016ea70b2b4d612ca800ad767e957492098814ec9845f0a2f1b52d6679f47a245c8d9c005ade81072bf07e164b2b97
@@ -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 /_attributes/, ''
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
- mab { input options }
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
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.66"
2
+ VERSION = "0.0.67"
3
3
  end
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.66
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-09 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuba