Commit 3707356af458d05624d3029b5829802f346bb3ae
1 parent
e022cf75
Exists in
master
and in
1 other branch
updating script
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
1 | +#!/usr/bin/env ruby | ||
2 | +# encoding: UTF-8 | ||
3 | + | ||
1 | def create_action(obj) | 4 | def create_action(obj) |
2 | target_model = obj.class.base_class.name.downcase | 5 | target_model = obj.class.base_class.name.downcase |
3 | action = Merit::Action.find_by_target_id_and_target_model_and_action_method(obj.id, target_model, 'create') | 6 | action = Merit::Action.find_by_target_id_and_target_model_and_action_method(obj.id, target_model, 'create') |