Skip to content

Commit

Permalink
interface.register_action: use Roby::Task as default return type
Browse files Browse the repository at this point in the history
The new generated task model cannot be used as default return type
because it cannot be replaced by other tasks derevied from Roby::Tasks

task_model.has_ancestor?(MyTask) ==> false
  • Loading branch information
Alexander Duda authored and Alexander Duda committed Nov 10, 2015
1 parent 651007c commit d098704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roby/actions/models/interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def register_action(name, action_model)
end
const_set task_model_name, task_model
task_model.permanent_model = self.permanent_model?
action_model.returns(task_model)
action_model.returns(task_model.superclass)
end
end

Expand Down

0 comments on commit d098704

Please sign in to comment.