{"action":"created","issue":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/448","labels_url":"https://api.github.com/repos/bernat/best_in_place/issues/448/labels{/name}","comments_url":"https://api.github.com/repos/bernat/best_in_place/issues/448/comments","events_url":"https://api.github.com/repos/bernat/best_in_place/issues/448/events","html_url":"https://github.com/bernat/best_in_place/issues/448","id":57466697,"number":448,"title":"display_with and as: :select don't work together?","user":{"login":"shyrahnama","id":2866012,"avatar_url":"https://avatars.githubusercontent.com/u/2866012?v=3","gravatar_id":"","url":"https://api.github.com/users/shyrahnama","html_url":"https://github.com/shyrahnama","followers_url":"https://api.github.com/users/shyrahnama/followers","following_url":"https://api.github.com/users/shyrahnama/following{/other_user}","gists_url":"https://api.github.com/users/shyrahnama/gists{/gist_id}","starred_url":"https://api.github.com/users/shyrahnama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyrahnama/subscriptions","organizations_url":"https://api.github.com/users/shyrahnama/orgs","repos_url":"https://api.github.com/users/shyrahnama/repos","events_url":"https://api.github.com/users/shyrahnama/events{/privacy}","received_events_url":"https://api.github.com/users/shyrahnama/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-12T14:29:18Z","updated_at":"2015-02-24T17:46:18Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm trying to use display_with to show a default value if a field isn't set and it's not working at all\r\n\r\nThe model is a user model and we allow users to not have a timezone, in which case I want to show the default configured timezone.\r\n\r\n```\r\nbest_in_place u, :time_zone, as: :select, url: admin_user_path(u), collection: ActiveSupport::TimeZone.zones_map.keys.select{|tz| tz.include?(\"US\")}.map{|tz| [tz,tz]}, display_with: lambda{ |v| v ? v : \"#{Rails.application.config.time_zone} (default)\" }\r\n```\r\n\r\nAm I missing something obvious?\r\n\r\nThxs.\r\n"},"comment":{"url":"https://api.github.com/repos/bernat/best_in_place/issues/comments/75807354","html_url":"https://github.com/bernat/best_in_place/issues/448#issuecomment-75807354","issue_url":"https://api.github.com/repos/bernat/best_in_place/issues/448","id":75807354,"user":{"login":"soberstadt","id":1080613,"avatar_url":"https://avatars.githubusercontent.com/u/1080613?v=3","gravatar_id":"","url":"https://api.github.com/users/soberstadt","html_url":"https://github.com/soberstadt","followers_url":"https://api.github.com/users/soberstadt/followers","following_url":"https://api.github.com/users/soberstadt/following{/other_user}","gists_url":"https://api.github.com/users/soberstadt/gists{/gist_id}","starred_url":"https://api.github.com/users/soberstadt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soberstadt/subscriptions","organizations_url":"https://api.github.com/users/soberstadt/orgs","repos_url":"https://api.github.com/users/soberstadt/repos","events_url":"https://api.github.com/users/soberstadt/events{/privacy}","received_events_url":"https://api.github.com/users/soberstadt/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T17:46:18Z","updated_at":"2015-02-24T17:46:18Z","body":"Should this be closed then?"}}