Sha256: 4e491a3748c1e4782641b5650e428529346d40fabcfa0c2e25411b3ec2fbed16

Contents?: true

Size: 388 Bytes

Versions: 12

Compression:

Stored size: 388 Bytes

Contents

module Neo4j::ActiveNode
  module SerializedProperties
    extend ActiveSupport::Concern

    def serialized_properties
      self.class.serialized_properties
    end

    module ClassMethods

      def serialized_properties
        @serialize || {}
      end

      def serialize(name, coder = JSON)
        @serialize ||= {}
        @serialize[name] = coder
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
neo4j-3.0.4 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.3 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.2 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.1 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.rc.5 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.rc.4 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.rc.3 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.rc.2 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.alpha.11 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.alpha.10 lib/neo4j/active_node/serialized_properties.rb
neo4j-3.0.0.alpha.9 lib/neo4j/active_node/serialized_properties.rb