properties_to_serialize (DataMapper::Serialize)

    # File lib/dm-serializer/common.rb, line 7
        def properties_to_serialize(options)
          only_properties     = Array(options[:only])
          excluded_properties = Array(options[:exclude])

          self.class.properties(repository.name).reject do |p|
            if only_properties.include? p.name
              false
            else
              excluded_properties.include?(p.name) || !(only_properties.empty? || only_properties.include?(p.name))
            end
          end
        end