Sha256: 44bb5b82e22f45ba253442ad5182e6bbf9b811b0add8aa56f0c8729cf3953b18
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
image_request = Tasks::Taskables::Image::Request.create! text: 'Upload a picture' task = Tasks::Task.create! taskable: image_request url_request = Tasks::Taskables::URL::Request.create! text: 'Specify a URL' task = Tasks::Task.create! taskable: url_request text_request = Tasks::Taskables::Text::Request.create! text: 'Write something' task = Tasks::Task.create! taskable: text_request code_request = Tasks::Taskables::Code::Request.create! text: 'Enter the code', code: '1337' task = Tasks::Task.create! taskable: code_request question = Tasks::Taskables::Question.create! text: 'Choose something' option = Tasks::Taskables::Question::Option.create! question: question, text: 'One option' option = Tasks::Taskables::Question::Option.create! question: question, text: 'Another option' task = Tasks::Task.create! taskable: question
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tasuku-1.1.0 | lib/tasuku/seeds.rb |
tasuku-1.0.1 | lib/tasuku/seeds.rb |