{"action":"opened","issue":{"url":"https://api.github.com/repos/intridea/grape-entity/issues/128","labels_url":"https://api.github.com/repos/intridea/grape-entity/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/intridea/grape-entity/issues/128/comments","events_url":"https://api.github.com/repos/intridea/grape-entity/issues/128/events","html_url":"https://github.com/intridea/grape-entity/issues/128","id":76422616,"number":128,"title":"error: \"undefined method `to_formatted_s' for nil:NilClass\"","user":{"login":"confact","id":433000,"avatar_url":"https://avatars.githubusercontent.com/u/433000?v=3","gravatar_id":"","url":"https://api.github.com/users/confact","html_url":"https://github.com/confact","followers_url":"https://api.github.com/users/confact/followers","following_url":"https://api.github.com/users/confact/following{/other_user}","gists_url":"https://api.github.com/users/confact/gists{/gist_id}","starred_url":"https://api.github.com/users/confact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/confact/subscriptions","organizations_url":"https://api.github.com/users/confact/orgs","repos_url":"https://api.github.com/users/confact/repos","events_url":"https://api.github.com/users/confact/events{/privacy}","received_events_url":"https://api.github.com/users/confact/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-14T16:58:53Z","updated_at":"2015-05-14T16:58:53Z","closed_at":null,"body":"Trying to format my datetime field created_at to iso8601 but apparently is created_at nil, but when puts it out it do have a value:\r\n```\r\n{:id=>1, :name=>\"Station 1\", :accepted=>1, :added=>Fri, 17 Apr 2015 17:25:00 CEST +02:00, :country=>\"SE\", :description=>\"test description\",\r\n:image=>#<LogoUploader:0x0000000c933418 @model=#<Station id: 1, name: \"Station 1\", description: \"test description\", country: \"SE\", accepted:\r\n 1, added: \"2015-04-17 15:25:00\", website: \"http://example.com\", currentsong_reverse: nil, image: nil, created_at: \"2015-04-17 15:25:00\", up\r\ndated_at: \"2015-04-17 15:25:00\", slug: \"station-1\", disableSongChecks: false>, @mounted_as=:image>, :slug=>\"station-1\", :website=>\"http://ex\r\nample.com\", :streams=>#<ActiveRecord::Associations::CollectionProxy [#<Stream id: 1, stream: \"http://94.23.48.124:8000\", bitrate: nil, conte\r\nnt_type: \"audio/mpeg\", status: 1, Station_id: 1, created_at: \"2015-04-17 15:25:01\", updated_at: \"2015-04-17 15:25:01\", timedout: false, empt\r\nycounter: 0>]>, :categories=>#<ActiveRecord::Associations::CollectionProxy [#<Category id: 2, title: \"Top 40\", description: \"Top music!\", ur\r\nlid: nil, created_at: \"2015-04-17 15:25:02\", updated_at: \"2015-04-17 15:25:02\", slug: \"top-40\", ancestry: \"1\", position: nil>]>, :station_so\r\nngs=>\r\n```\r\nAnd the error i get is ```error: \"undefined method `to_formatted_s' for nil:NilClass\"```\r\n\r\nWhat i do in the code is:\r\n```ruby\r\n      format_with(:iso_timestamp) { |dt| dt.to_formatted_s(:iso8601)  }\r\n      with_options(format_with: :iso_timestamp) do\r\n        expose :created_at\r\n      end\r\n```\r\n\r\nWhat am I doing wrong?\r\n"}}