method

encoded

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: Serialized
encoded(value) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/type/serialized.rb, line 63
        def encoded(value)
          return if default_value?(value)
          payload = coder.dump(value)
          if payload && binary? && payload.encoding != Encoding::BINARY
            payload = payload.dup if payload.frozen?
            payload.force_encoding(Encoding::BINARY)
          end
          payload
        end
Register or log in to add new notes.