lib/generators/dry_crud/templates/test/crud_test_model.rb
# Controller helper methods for the tests
Controller helper methods for the tests
Controller helper methods for the tests
def create_other(index)
    c = str(index)
    others = CrudTestModel.all[index..(index+2)]
    OtherCrudTestModel.create!(:name => c, :other_ids => others.collect(&:id), :more_id => others.first.try(:id))
  end
def create_other ( index ) c = str ( index ) others = CrudTestModel . all [ index .. ( index + 2 ) ] OtherCrudTestModel . create! ( :name => c , :other_ids => others . collect ( & :id ) , :more_id => others . first . try ( :id ) ) end
Controller helper methods for the tests
Controller helper methods for the tests
index