Module: CleanActions::FailWith
- Included in:
- Base
- Defined in:
- lib/clean_actions/fail_with.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/clean_actions/fail_with.rb', line 3 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#dry_call ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/clean_actions/fail_with.rb', line 7 def dry_call self.class.before_actions_blocks.each_with_object([]) do |b, failures| instance_eval(&b) rescue CleanActions::ActionFailure => f failures << f end end |