{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/9642e8bd2c0a4aa406f0d856cde7a6f2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9642e8bd2c0a4aa406f0d856cde7a6f2","url":"https://api.github.com/users/Nerian","login":"Nerian","id":259568},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-12T00:50:08Z","comments":8,"closed_at":null,"url":"https://api.github.com/repos/tenderlove/texticle/issues/55","body":"```ruby\r\n :092 >   Course.all\r\n => [#<Course id: 1, name: \"Curso1\", description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\"] \r\n\r\n :093 > Course.search 'curso1'\r\n => [] \r\n\r\n :094 > Course.search 'Curso1'\r\n => [] \r\n\r\n :095 > Course.search name: 'Curso1'\r\n => [#<Course id: 1, name: \"Curso1\", description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\"] \r\n\r\n :096 > Course.search name: 'Curso'\r\n => []\r\n\r\n :097 > Course.search 'lorem'\r\n => [] \r\n\r\n :098 > Course.search 'Lorem ipsum dolor sit amet, consectetur adipisicing'\r\n => [] \r\n\r\n :099 > Course.search description: 'Lorem ipsum dolor sit amet, consectetur adipisicing'\r\n => [#<Course id: 1, name: \"Curso1\", created_at: \"2011-09-08 17:22:23\", updated_at: \"2011-09-08 17:22:23\", channel_id: nil, start_date: \"2011-09-07\", end_date: \"2011-09-30\", archived: false, term_id: 1, class_size_limit: 10, description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\", notes: nil, cc_comments: \"\", open_for_enrollment: false, enrollment_close_date: nil>] \r\n\r\n :100 > Course.search description: 'Lorem ipsum dolor sit amet,'\r\n => [#<Course id: 1, name: \"Curso1\", created_at: \"2011-09-08 17:22:23\", updated_at: \"2011-09-08 17:22:23\", channel_id: nil, start_date: \"2011-09-07\", end_date: \"2011-09-30\", archived: false, term_id: 1, class_size_limit: 10, description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\", notes: nil, cc_comments: \"\", open_for_enrollment: false, enrollment_close_date: nil>] \r\n\r\n :101 > Course.search description: 'Lorem ipsum dolor'\r\n => [#<Course id: 1, name: \"Curso1\", created_at: \"2011-09-08 17:22:23\", updated_at: \"2011-09-08 17:22:23\", channel_id: nil, start_date: \"2011-09-07\", end_date: \"2011-09-30\", archived: false, term_id: 1, class_size_limit: 10, description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\", notes: nil, cc_comments: \"\", open_for_enrollment: false, enrollment_close_date: nil>] \r\n\r\n :102 > Course.search description: 'Lorem ipsum'\r\n => [#<Course id: 1, name: \"Curso1\", created_at: \"2011-09-08 17:22:23\", updated_at: \"2011-09-08 17:22:23\", channel_id: nil, start_date: \"2011-09-07\", end_date: \"2011-09-30\", archived: false, term_id: 1, class_size_limit: 10, description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\", notes: nil, cc_comments: \"\", open_for_enrollment: false, enrollment_close_date: nil>] \r\n\r\n :103 > Course.search description: 'Lorem'\r\n => [#<Course id: 1, name: \"Curso1\", created_at: \"2011-09-08 17:22:23\", updated_at: \"2011-09-08 17:22:23\", channel_id: nil, start_date: \"2011-09-07\", end_date: \"2011-09-30\", archived: false, term_id: 1, class_size_limit: 10, description: \"Lorem ipsum dolor sit amet, consectetur adipisicing...\", notes: nil, cc_comments: \"\", open_for_enrollment: false, enrollment_close_date: nil>] \r\n\r\n :104 > Course.search description: 'Lore'\r\n => [] \r\n\r\n```\r\n\r\nIs this the right behaviour? \r\n\r\nIt never finds anything if I don't specify the attribute.\r\n\r\nI would expect `Course.search name: 'Curso' ` to return a value, but it doesn't. \r\n\r\nThis is a Rails application using `texticle (2.0.2)`\r\n\r\n\r\n","html_url":"https://github.com/tenderlove/texticle/issues/55","title":"Matches","number":55,"id":1690280,"created_at":"2011-09-20T18:20:17Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/05346c395fb1fc8890d0e2361ea075b4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"05346c395fb1fc8890d0e2361ea075b4","url":"https://api.github.com/users/ecin","login":"ecin","id":646},"updated_at":"2011-11-12T00:50:08Z","url":"https://api.github.com/repos/tenderlove/texticle/issues/comments/2715137","body":"Oh right, my bad.\r\n\r\nUser.search(\"bar:*\") should search for prefixes. ","id":2715137,"created_at":"2011-11-12T00:50:08Z"}}