lib/cascade/row_processor.rb in cascade-rb-0.2.2 vs lib/cascade/row_processor.rb in cascade-rb-0.2.3
- old
+ new
@@ -6,10 +6,10 @@
module Cascade
class RowProcessor
extend Configuration
using HashRefinements
- DEFAULT_PROCESSOR = ->(value) { value }
+ DEFAULT_PROCESSOR = ->(value) { value && value.to_s.strip }
define_setting :use_default_presenter, false
define_setting :deafult_presenter, -> { DEFAULT_PROCESSOR }
def initialize(options = {})