lib/restpack_serializer/serializable.rb in restpack_serializer-0.6.4 vs lib/restpack_serializer/serializable.rb in restpack_serializer-0.6.5

- old
+ new

@@ -36,10 +36,10 @@ if model.kind_of?(Array) return model.map { |item| as_json(item, context) } end @model, @context = model, context - user_defined_methods = self.class.user_defined_methods + user_defined_methods = self.class.user_defined_methods || [] data = {} if self.class.serializable_attributes.present? self.class.serializable_attributes.each do |key, attribute| method_name = attribute[:include_method_name]