cookpad/chanko — pull request #14 by sorah (2012-10-11 06:07:50+00:00)
Title: Unit.raise_error

``` ruby
Chanko.config.raise = false

# coding: utf-8
module Sample
include Chanko::Unit
raise_error # force raising enabled for this unit

active_if :always_true

scope(:controller) do
function(:index) do
raise "Error!"
end
end
end

# but not for this unit
module Bar
include Chanko::Unit

scope(:controller) do
function(:index) do
raise "Error!"
end
end
end

```