{"action":"created","issue":{"url":"https://api.github.com/repos/richhollis/swagger-docs/issues/133","labels_url":"https://api.github.com/repos/richhollis/swagger-docs/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/richhollis/swagger-docs/issues/133/comments","events_url":"https://api.github.com/repos/richhollis/swagger-docs/issues/133/events","html_url":"https://github.com/richhollis/swagger-docs/issues/133","id":126925964,"number":133,"title":"NoMethodError: undefined method `<' for false:FalseClass","user":{"login":"heaven","id":126732,"avatar_url":"https://avatars.githubusercontent.com/u/126732?v=3","gravatar_id":"","url":"https://api.github.com/users/heaven","html_url":"https://github.com/heaven","followers_url":"https://api.github.com/users/heaven/followers","following_url":"https://api.github.com/users/heaven/following{/other_user}","gists_url":"https://api.github.com/users/heaven/gists{/gist_id}","starred_url":"https://api.github.com/users/heaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heaven/subscriptions","organizations_url":"https://api.github.com/users/heaven/orgs","repos_url":"https://api.github.com/users/heaven/repos","events_url":"https://api.github.com/users/heaven/events{/privacy}","received_events_url":"https://api.github.com/users/heaven/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T18:06:40Z","updated_at":"2016-01-15T18:48:08Z","closed_at":"2016-01-15T18:48:08Z","body":"```\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:140:in `process_path'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:75:in `block in generate_doc'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:74:in `each'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:74:in `generate_doc'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:56:in `block in generate_docs'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:53:in `each'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:53:in `generate_docs'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/swagger/docs/generator.rb:24:in `write_docs'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/gems/swagger-docs-0.2.6/lib/tasks/swagger.rake:5:in `block (2 levels) in <top (required)>'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/bin/ruby_executable_hooks:15:in `eval'\r\n/Users/heaven/.rvm/gems/ruby-2.2.1@clarion/bin/ruby_executable_hooks:15:in `<main>'\r\n```\r\n\r\nThere's a typo in the code, at the line https://github.com/richhollis/swagger-docs/blob/master/lib/swagger/docs/generator.rb#L139\r\n\r\nThis:\r\n```ruby\r\nif config[:parent_controller] && !klass < config[:parent_controller]\r\n```\r\nShould probably be:\r\n```ruby\r\nif config[:parent_controller] && !(klass < config[:parent_controller])\r\n```"},"comment":{"url":"https://api.github.com/repos/richhollis/swagger-docs/issues/comments/172049080","html_url":"https://github.com/richhollis/swagger-docs/issues/133#issuecomment-172049080","issue_url":"https://api.github.com/repos/richhollis/swagger-docs/issues/133","id":172049080,"user":{"login":"richhollis","id":1422665,"avatar_url":"https://avatars.githubusercontent.com/u/1422665?v=3","gravatar_id":"","url":"https://api.github.com/users/richhollis","html_url":"https://github.com/richhollis","followers_url":"https://api.github.com/users/richhollis/followers","following_url":"https://api.github.com/users/richhollis/following{/other_user}","gists_url":"https://api.github.com/users/richhollis/gists{/gist_id}","starred_url":"https://api.github.com/users/richhollis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richhollis/subscriptions","organizations_url":"https://api.github.com/users/richhollis/orgs","repos_url":"https://api.github.com/users/richhollis/repos","events_url":"https://api.github.com/users/richhollis/events{/privacy}","received_events_url":"https://api.github.com/users/richhollis/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T18:48:08Z","updated_at":"2016-01-15T18:48:08Z","body":"Ah yes - good spot. This came in on a recent PR and there wasn't any coverage for it. Thanks for the solution. This has been added with a basic spec to cover it."}}