lib/mblox/configuration.rb in mblox-0.0.2 vs lib/mblox/configuration.rb in mblox-0.0.3

- old
+ new

@@ -17,10 +17,10 @@ @log_level = :debug @on_message_too_long = :raise_error end def on_message_too_long= action - raise ArgumentError, "Mblox.config.on_message_too_long must be either :truncate or :raise_error" unless [:truncate, :raise_error].include?(action) + raise ArgumentError, "Mblox.config.on_message_too_long must be either :truncate, :split or :raise_error" unless [:truncate, :raise_error, :split].include?(action) @on_message_too_long = action end def log_at level validate @logger, level