module Mobility::Plugins::Backend::InstanceMethods
Public Instance Methods
initialize_dup(other)
click to toggle source
Calls superclass method
# File lib/mobility/plugins/backend.rb, line 128 def initialize_dup(other) @mobility_backends = nil super end
mobility_backends()
click to toggle source
Return a new backend for an attribute name. @return [Hash] Hash of attribute names and backend instances @api private
# File lib/mobility/plugins/backend.rb, line 121 def mobility_backends @mobility_backends ||= ::Hash.new do |hash, name| next hash[name.to_sym] if String === name hash[name] = self.class.mobility_backend_class(name).new(self, name.to_s) end end