Method: Flydata::Helper::Config#fetch_scheduled_actions_conf
- Defined in:
- lib/flydata/helper/config_parser.rb
#fetch_scheduled_actions_conf(action_name, name, default = nil) ⇒ Object
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/flydata/helper/config_parser.rb', line 42 def fetch_scheduled_actions_conf(action_name, name, default = nil) value = if self[:scheduled_actions] and self[:scheduled_actions][action_name.to_sym] and self[:scheduled_actions][action_name.to_sym][name.to_sym] self[:scheduled_actions][action_name.to_sym][name.to_sym] else nil end value.nil? ? default : value end |