Skip to content

Commit

Permalink
Fixed triggered actions for webforms
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Feb 24, 2011
1 parent 3a90953 commit a52d99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/trigger/core_trigger.rb
Expand Up @@ -64,7 +64,7 @@ def validate

def perform(action_data={},user = nil)

data_vars = action_data.is_a?(DomainModel) ? action_data.triggered_attributes : (action_data.is_a?(Hash) ? action_data : {})
data_vars = action_data.is_a?(DomainModel) ? action_data.triggered_attributes : (action_data.is_a?(Hash) ? action_data : (action_data.respond_to?(:to_hash) ? action_data.to_hash : {}))
data_vars.symbolize_keys!

# Find out who we are emailing
Expand Down

0 comments on commit a52d99b

Please sign in to comment.