lib/action_handle/configuration.rb in action-handle-0.0.4 vs lib/action_handle/configuration.rb in action-handle-0.1.0

- old
+ new

@@ -6,14 +6,22 @@ attr_accessor :adapter, :logger, :silence_errors end module_function - def adapter - @adapter ||= Adapters::RedisPool.new + def adapter(obj = nil) + @adapter = obj if obj + + @adapter ||= :redis end - def silence_errors - @silence_errors ||= :no + def redis_pool + @redis_pool + end + + def silence_errors(value = nil) + @silence_errors = value if value + + @silence_errors ||= false end end end