modalfields 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/modalfields/modalfields.rb +7 -1
- data/modalfields.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.1
|
@@ -322,7 +322,9 @@ module ModalFields
|
|
322
322
|
end
|
323
323
|
|
324
324
|
def report(options={})
|
325
|
-
|
325
|
+
models = Array(options[:model])
|
326
|
+
models = dbmodels(dbmodel_options) if models.blank?
|
327
|
+
models(dbmodel_options).each do |model, file|
|
326
328
|
if options[:tables]
|
327
329
|
yield :table, model.table_name, nil, {:model=>model}
|
328
330
|
end
|
@@ -387,6 +389,10 @@ module ModalFields
|
|
387
389
|
end
|
388
390
|
end
|
389
391
|
|
392
|
+
def models(options=nil)
|
393
|
+
dbmodels options || dbmodel_options
|
394
|
+
end
|
395
|
+
|
390
396
|
private
|
391
397
|
|
392
398
|
def field_data(field_info, options={})
|
data/modalfields.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modalfields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
segments:
|
234
234
|
- 0
|
235
|
-
hash:
|
235
|
+
hash: -3700029697793171313
|
236
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
237
|
none: false
|
238
238
|
requirements:
|