lib/agnostic_backend/queryable/value.rb in agnostic_backend-0.9.8 vs lib/agnostic_backend/queryable/value.rb in agnostic_backend-0.9.9
- old
+ new
@@ -17,9 +17,10 @@
def associated_attribute
parent.attribute if parent.respond_to? :attribute
end
def type
+ return :text if associated_attribute.try(:any?)
associated_attribute.type if associated_attribute.present?
end
end
end
end
\ No newline at end of file