Class: SimpleActivity::Rule
- Inherits:
-
Object
- Object
- SimpleActivity::Rule
- Defined in:
- lib/simple_activity/rule.rb
Class Method Summary collapse
-
.get_rules_set(target, type = '_cache') ⇒ Object
Get a set of rules for specific target, action, and type.
Class Method Details
.get_rules_set(target, type = '_cache') ⇒ Object
Get a set of rules for specific target, action, and type. The type is normally “cache”. It can also be other things once needed in external libs.
14 15 16 |
# File 'lib/simple_activity/rule.rb', line 14 def self.get_rules_set(target, type='_cache') all_rules.try(:[], target).try(:[], type) end |