5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-06 13:35:45 +00:00

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)