app/controllers/api_controller/initializer.rb
#
# Let's fetch encrypted attribute names of objects being rendered if not already done
#
Let's fetch encrypted attribute names of objects being rendered if not already done
Let ' s fetch encrypted attribute names of objects being rendered if not already done
def fetch_encrypted_attribute_names(obj)
        @encrypted_objects_checked ||= {}
        klass = obj.class.name
        return unless @encrypted_objects_checked[klass].nil?
        @encrypted_objects_checked[klass] = object_encrypted_attributes(obj)
        @encrypted_objects_checked[klass].each { |attr| @attr_encrypted[attr] = true }
      end
def fetch_encrypted_attribute_names ( obj ) @encrypted_objects_checked ||= { } klass = obj . class . name return unless @encrypted_objects_checked [ klass ] . nil? @encrypted_objects_checked [ klass ] = object_encrypted_attributes ( obj ) @encrypted_objects_checked [ klass ] . each { | attr | @attr_encrypted [ attr ] = true } end
Let's fetch encrypted attribute names of objects being rendered if not already done
Let ' s fetch encrypted attribute names of objects being rendered if not already done
obj
<not_specific>