lib/representable/mapper.rb in representable-2.0.4 vs lib/representable/mapper.rb in representable-2.1.0
- old
+ new
@@ -50,10 +50,10 @@
end
def skip_conditional_property?(binding)
return unless condition = binding[:if]
- not binding.send(:evaluate_option, :if)
+ not binding.evaluate_option(:if)
end
# DISCUSS: this could be just another :if option in a Pipeline?
def skip_protected_property(binding, options)
options[:action] == :serialize ? binding[:readable] == false : binding[:writeable] == false
\ No newline at end of file