Skip to content

Commit

Permalink
Set the internal Workflow model to be the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Sep 17, 2014
1 parent b07eafd commit 9277755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/taverna-player.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ module TavernaPlayer
mattr_accessor :server_address, :server_password, :server_username

# This should be set to the name of the workflow model class in the main
# application via the workflow_model_proxy method below.
# application via the workflow_model_proxy method below. Defaults to the
# internal Taverna Player Workflow model (TavernaPlayer::Workflow).
mattr_reader :workflow_proxy
@@workflow_proxy =
ModelProxy.new("TavernaPlayer::Workflow", [:file, :title, :inputs])

# :call-seq:
# workflow_model_proxy(workflow_class) {|proxy| ...}
Expand Down
3 changes: 0 additions & 3 deletions test/dummy/config/initializers/taverna_player.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
# Taverna Player configuration

TavernaPlayer.setup do |config|
config.workflow_model_proxy("TavernaPlayer::Workflow") do |proxy|
proxy.file_method_name = :file
end
config.user_model_proxy = "User"
config.current_user_callback = Proc.new { User.first }

Expand Down

0 comments on commit 9277755

Please sign in to comment.