module Mobility::Plugins::Presence::BackendMethods
Public Instance Methods
read(locale, **options)
click to toggle source
@!group Backend
Accessors @!macro backend_reader @option options [Boolean] presence
*false* to disable presence filter.
Calls superclass method
# File lib/mobility/plugins/presence.rb, line 31 def read(locale, **options) options.delete(:presence) == false ? super : Presence[super] end
write(locale, value, **options)
click to toggle source
@!macro backend_writer @option options [Boolean] presence
*false* to disable presence filter.
Calls superclass method
# File lib/mobility/plugins/presence.rb, line 38 def write(locale, value, **options) if options.delete(:presence) == false super else super(locale, Presence[value], **options) end end