Module: Mobility::Plugins::Presence
- Extended by:
- Mobility::Plugin
- Defined in:
- lib/mobility/plugins/presence.rb
Overview
Note:
For performance reasons, the presence plugin filters only for empty strings, not other values continued “blank” like empty arrays.
Applies presence filter to values fetched from backend and to values set on backend.
Defined Under Namespace
Modules: BackendMethods
Class Method Summary collapse
Methods included from Mobility::Plugin
configure, configure_default, default, dependencies, dependencies_satisfied?, included, included_hook, initialize_hook, requires
Class Method Details
.[](value) ⇒ Object
48 49 50 |
# File 'lib/mobility/plugins/presence.rb', line 48 def self.[](value) (value == "") ? nil : value end |