Class: NilReturningCoder::Coder
- Inherits:
-
ActiveRecord::Coders::YAMLColumn
- Object
- ActiveRecord::Coders::YAMLColumn
- NilReturningCoder::Coder
- Defined in:
- lib/nil_returning_coder.rb
Instance Method Summary collapse
Instance Method Details
#dump(obj) ⇒ Object
24 25 26 27 |
# File 'lib/nil_returning_coder.rb', line 24 def dump(obj) return if obj.blank? super end |
#load(yaml) ⇒ Object
28 29 30 31 |
# File 'lib/nil_returning_coder.rb', line 28 def load(yaml) return if yaml.blank? super end |