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 CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.4.1
@@ -322,7 +322,9 @@ module ModalFields
322
322
  end
323
323
 
324
324
  def report(options={})
325
- dbmodels(dbmodel_options).each do |model, file|
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "modalfields"
8
- s.version = "1.4.0"
8
+ s.version = "1.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Javier Goizueta"]
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.0
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: 1905351546743717120
235
+ hash: -3700029697793171313
236
236
  required_rubygems_version: !ruby/object:Gem::Requirement
237
237
  none: false
238
238
  requirements: