lib/plezi/controller/controller.rb in plezi-0.14.7 vs lib/plezi/controller/controller.rb in plezi-0.14.8
- old
+ new
@@ -242,20 +242,18 @@
end
# @private
# This function is used internally by Plezi, do not call.
def _pl_ad_review(data)
- if self.class._pl_is_ad?
- case data
- when Hash
- write data.to_json
- when String
- write data
- # when Array
- # write ret
- end
- end
- data
+ return data unless self.class._pl_is_ad?
+ case data
+ when Hash
+ write data.to_json
+ when String
+ write data
+ # when Array
+ # write data.to_json
+ end
end
# @private
# This function is used internally by Plezi, do not call.
def _pl_ad_httpreview(data)