{"action":"opened","issue":{"url":"https://api.github.com/repos/mirego/activerecord_sane_schema_dumper/issues/7","repository_url":"https://api.github.com/repos/mirego/activerecord_sane_schema_dumper","labels_url":"https://api.github.com/repos/mirego/activerecord_sane_schema_dumper/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mirego/activerecord_sane_schema_dumper/issues/7/comments","events_url":"https://api.github.com/repos/mirego/activerecord_sane_schema_dumper/issues/7/events","html_url":"https://github.com/mirego/activerecord_sane_schema_dumper/issues/7","id":192277156,"number":7,"title":"`NoMethodError: private method `print' called for nil:NilClass`","user":{"login":"Dorian","id":129149,"avatar_url":"https://avatars.githubusercontent.com/u/129149?v=3","gravatar_id":"","url":"https://api.github.com/users/Dorian","html_url":"https://github.com/Dorian","followers_url":"https://api.github.com/users/Dorian/followers","following_url":"https://api.github.com/users/Dorian/following{/other_user}","gists_url":"https://api.github.com/users/Dorian/gists{/gist_id}","starred_url":"https://api.github.com/users/Dorian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dorian/subscriptions","organizations_url":"https://api.github.com/users/Dorian/orgs","repos_url":"https://api.github.com/users/Dorian/repos","events_url":"https://api.github.com/users/Dorian/events{/privacy}","received_events_url":"https://api.github.com/users/Dorian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-29T13:08:18Z","updated_at":"2016-11-29T13:08:18Z","closed_at":null,"body":"It doesn't work on Rails 5.0.0, for some reason `main_stream` is nil.\r\n\r\n```\r\n      def table(table, main_stream)\r\n        # Call the original method to populate our custom stream\r\n        stream = StringIO.new\r\n        super(table, stream)\r\n\r\n        # Rewind the stream and remove useless whitespace\r\n        content = stream.tap(&:rewind).read.gsub(/(?<!^)(?<!\\s)[ ]{2,}/, ' ')\r\n        main_stream.print(content)\r\n\r\n        # Rails expects the `#table` method to return the main stream\r\n        main_stream\r\n      end\r\n```"}}
{"actor":{"display_login":"Dorian"}}