aantix / turkee

Blurring the line between Mechanical Turk, Rails and usability testing..
http://github.com/aantix/turkee
MIT License
152 stars 39 forks source link

sandbox parameter dispersed? #3

Closed nmaisonneuve closed 13 years ago

nmaisonneuve commented 13 years ago

Hi,

about the sandbox parameter

\ in rails app /initializer/turkee.rb sandbox=(Rails.env == 'production' ? false : true) RTurk.setup(AWSACCESSKEYID, AWSACCESSKEY, :sandbox => sandbox)

\ and in turkee gems/ turkee.rb
self.create_hit(host, hit_title, hit_description, typ, num_assignments, reward, lifetime, keywords, task_duration) ... TurkeeTask.create(:sandbox => (Rails.env == 'production' ? false : true),

so I want to configure the sandbox parameter in something else that depending of the production or development mode , I need to change the both variable

is there a way to create only 1 variable in Turkee that initialize RTurk

Nicolas

aantix commented 13 years ago

You could pass in the value of RTurk.sandbox?

TurkeeTask.create(:sandbox             => RTurk.sandbox?,

I will make that change. Thanks!

Jim

nmaisonneuve commented 13 years ago

Thanks Jim for the support !

nmaisonneuve commented 13 years ago

Thanks Jim for the support !