{"action":"created","issue":{"url":"https://api.github.com/repos/mrbrdo/datasource/issues/1","labels_url":"https://api.github.com/repos/mrbrdo/datasource/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mrbrdo/datasource/issues/1/comments","events_url":"https://api.github.com/repos/mrbrdo/datasource/issues/1/events","html_url":"https://github.com/mrbrdo/datasource/issues/1","id":53412030,"number":1,"title":"fail_missing_attributes invoked in simple mode","user":{"login":"kirillplatonov","id":839922,"avatar_url":"https://avatars.githubusercontent.com/u/839922?v=3","gravatar_id":"","url":"https://api.github.com/users/kirillplatonov","html_url":"https://github.com/kirillplatonov","followers_url":"https://api.github.com/users/kirillplatonov/followers","following_url":"https://api.github.com/users/kirillplatonov/following{/other_user}","gists_url":"https://api.github.com/users/kirillplatonov/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillplatonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillplatonov/subscriptions","organizations_url":"https://api.github.com/users/kirillplatonov/orgs","repos_url":"https://api.github.com/users/kirillplatonov/repos","events_url":"https://api.github.com/users/kirillplatonov/events{/privacy}","received_events_url":"https://api.github.com/users/kirillplatonov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-05T16:13:14Z","updated_at":"2015-01-05T16:24:52Z","closed_at":null,"body":"```\r\nNameError - undefined local variable or method `name' for #<#<Class:0x007fef775a4da8>:0x007fef775b5b08>:\r\n   () usr/local/var/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/datasource-bd75d8f581a6/lib/datasource/base.rb:149:in `fail_missing_attributes'\r\n   () usr/local/var/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/datasource-bd75d8f581a6/lib/datasource/base.rb:138:in `select'\r\n   () usr/local/var/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/datasource-bd75d8f581a6/lib/datasource/adapters/active_record.rb:30:in `get_datasource'\r\n   () usr/local/var/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/datasource-bd75d8f581a6/lib/datasource/adapters/active_record.rb:38:in `exec_queries'\r\n  activerecord (4.1.8) lib/active_record/relation.rb:493:in `load'\r\n  activerecord (4.1.8) lib/active_record/relation.rb:238:in `to_a'\r\n   () usr/local/var/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/datasource-bd75d8f581a6/lib/datasource/consumer_adapters/active_model_serializers.rb:15:in `initialize_with_datasource'\r\n   () usr/local/var/rbenv/versions/2.1.4/lib/ruby/gems/2.1.0/bundler/gems/datasource-bd75d8f581a6/lib/datasource/consumer_adapters/active_model_serializers.rb:74:in `initialize'\r\n  active_model_serializers (0.9.2) lib/action_controller/serialization.rb:76:in `build_json_serializer'\r\n```\r\n\r\nLook's like `fail_missing_attributes` was invoked in simple mode, but it shouldn't.\r\n\r\nMaybe?\r\n```ruby\r\n# https://github.com/mrbrdo/datasource/blob/master/lib/datasource/base.rb 138 line\r\nfail_missing_attributes(missing_attributes) if missing_attributes.present? && Datasource.config.simple_mode\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mrbrdo/datasource/issues/comments/68732249","html_url":"https://github.com/mrbrdo/datasource/issues/1#issuecomment-68732249","issue_url":"https://api.github.com/repos/mrbrdo/datasource/issues/1","id":68732249,"user":{"login":"mrbrdo","id":167990,"avatar_url":"https://avatars.githubusercontent.com/u/167990?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbrdo","html_url":"https://github.com/mrbrdo","followers_url":"https://api.github.com/users/mrbrdo/followers","following_url":"https://api.github.com/users/mrbrdo/following{/other_user}","gists_url":"https://api.github.com/users/mrbrdo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbrdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbrdo/subscriptions","organizations_url":"https://api.github.com/users/mrbrdo/orgs","repos_url":"https://api.github.com/users/mrbrdo/repos","events_url":"https://api.github.com/users/mrbrdo/events{/privacy}","received_events_url":"https://api.github.com/users/mrbrdo/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T16:24:52Z","updated_at":"2015-01-05T16:24:52Z","body":"there was a bug inside fail_missing_attributes. it still needs to be called, it means that you are trying to select an attribute datasource doesn't know about (and it should know about at least all the database columns, so it seems like you are selecting something else).\r\ncan you try with master, you should get a better error message now, and let me know.\r\n\r\nthanks!"}}