permitir select unicos

This commit is contained in:
f 2018-05-17 15:42:35 -03:00
parent 07c937682b
commit 4e607bc4cf
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -248,6 +248,8 @@ class Post
type = 'text'
when tt == 'text'
type = 'text_area'
when tt.is_a?(String) && tt.split('/', 2).count == 2
type = 'select'
when tt.is_a?(Array)
type = 'select'
when tt.is_a?(FalseClass) || tt.is_a?(TrueClass)