effective_bootstrap 1.14.3 → 1.14.4

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
  SHA256:
3
- metadata.gz: 4fa93cb9e48b8d3d2178adf482bb9ca80e0c3031d8a5096e54d913d31729111e
4
- data.tar.gz: 01ae7c70458e2e2622048bd1fd0e348043d527d079ca6083679678ae855880c4
3
+ metadata.gz: 473950005d6f69ad8d03ccdb176cbddf84c3cc89cbec7a73dcfc968e2ef1eca9
4
+ data.tar.gz: c72db95cd5971de88cb157fc2e35ef9e6b507038af495b53ea0ab94181eae2c2
5
5
  SHA512:
6
- metadata.gz: 9752969090369e1dc87953e16302bd3a9c1356a92e50e102ec3a6ffc414baf521cd0a4303a92ee129c16d23b52d0f4d32b0f1a30e686aefa207d6201ae59baf1
7
- data.tar.gz: bc82b1459210f5f17ceb990701f99f0aec47092308f4c3eae8a878e36b873cc4731f2b0ad84b4dd4b28d89710b50c833ad5387a005d76a1434ba8d82325a683b
6
+ metadata.gz: d8501f7f6cedefdac92a3cf349c9009f89115a5fd308107fda70c6e229e152455b7517d8ad9e0a70450b263c5e6dc0922dd05e58fb360726acf2d36332e2d1ce
7
+ data.tar.gz: d2ea39ec1d62ba781999bf5211e91414f30f96020dcdea79af0501cc7b20bb96791884fa64ece4f412bf36f5a2f64084ff5c12c63f5b98e2ddb8c161f6ead38c
@@ -164,6 +164,10 @@ module Effective
164
164
  # Nothing to do
165
165
  end
166
166
 
167
+ def static_field(name, options = {}, &block)
168
+ rows[name] = (value(name).is_a?(ActiveRecord::Base)) ? belongs_to(name, options) : default_row(name, options)
169
+ end
170
+
167
171
  def text_area(name, options = {})
168
172
  rows[name] = TableRows::TextArea.new(name, options, builder: self).to_html
169
173
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.14.3'.freeze
2
+ VERSION = '1.14.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.3
4
+ version: 1.14.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails