lib/gorillib/model/field.rb in gorillib-0.5.0 vs lib/gorillib/model/field.rb in gorillib-0.5.2
- old
+ new
@@ -43,11 +43,11 @@
type_opts[:items] = type_opts.delete(:of) if type_opts.has_key?(:of)
#
@model = model
@name = name.to_sym
@type = Gorillib::Factory.factory_for(type, type_opts)
- default_visabilities = visibilities
- @visibilities = default_visabilities.merge( options.extract!(*default_visabilities.keys) )
+ default_visibilities = visibilities
+ @visibilities = default_visibilities.merge( options.extract!(*default_visibilities.keys).compact )
@doc = options.delete(:name){ "#{name} field" }
receive!(options)
end
# __________________________________________________________________________