permitir select unicos
This commit is contained in:
parent
07c937682b
commit
4e607bc4cf
1 changed files with 2 additions and 0 deletions
|
@ -248,6 +248,8 @@ class Post
|
||||||
type = 'text'
|
type = 'text'
|
||||||
when tt == 'text'
|
when tt == 'text'
|
||||||
type = 'text_area'
|
type = 'text_area'
|
||||||
|
when tt.is_a?(String) && tt.split('/', 2).count == 2
|
||||||
|
type = 'select'
|
||||||
when tt.is_a?(Array)
|
when tt.is_a?(Array)
|
||||||
type = 'select'
|
type = 'select'
|
||||||
when tt.is_a?(FalseClass) || tt.is_a?(TrueClass)
|
when tt.is_a?(FalseClass) || tt.is_a?(TrueClass)
|
||||||
|
|
Loading…
Reference in a new issue