Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit.propagates_errors #14

Merged
merged 3 commits into from
Oct 11, 2012
Merged

Unit.propagates_errors #14

merged 3 commits into from
Oct 11, 2012

Conversation

sorah
Copy link
Member

@sorah sorah commented Oct 11, 2012

Chanko.config.raise = false

# coding: utf-8
module Sample
  include Chanko::Unit
  propagates_errors # 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

@mrkn
Copy link
Contributor

mrkn commented Oct 11, 2012

👍

sorah added a commit that referenced this pull request Oct 11, 2012
@sorah sorah merged commit cad7349 into cookpad:master Oct 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants