module Mobility::Plugins::Presence
Applies presence filter to values fetched from backend and to values set on backend.
@note For performance reasons, the presence plugin filters only for empty
strings, not other values continued "blank" like empty arrays.
Public Class Methods
[](value)
click to toggle source
# File lib/mobility/plugins/presence.rb, line 48 def self.[](value) (value == "") ? nil : value end