{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/26417","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/26417/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/26417/comments","events_url":"https://api.github.com/repos/rails/rails/issues/26417/events","html_url":"https://github.com/rails/rails/issues/26417","id":175430301,"number":26417,"title":"Cache key behaviour for alliased timestamps","user":{"login":"alexandru-calinoiu","id":679198,"avatar_url":"https://avatars.githubusercontent.com/u/679198?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru-calinoiu","html_url":"https://github.com/alexandru-calinoiu","followers_url":"https://api.github.com/users/alexandru-calinoiu/followers","following_url":"https://api.github.com/users/alexandru-calinoiu/following{/other_user}","gists_url":"https://api.github.com/users/alexandru-calinoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru-calinoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru-calinoiu/subscriptions","organizations_url":"https://api.github.com/users/alexandru-calinoiu/orgs","repos_url":"https://api.github.com/users/alexandru-calinoiu/repos","events_url":"https://api.github.com/users/alexandru-calinoiu/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru-calinoiu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-07T07:19:12Z","updated_at":"2016-09-07T09:12:51Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\nI a simple model\r\n\r\n```ruby\r\nclass Epixcms::Movies::Movie < ActiveRecord::Base\r\n  alias_attribute :updated_at, :modified_date\r\n  alias_attribute :created_at, :create_date\r\nend\r\n\r\nmovie = Epixcms::Movies::Movie.new\r\nmovie.modified_date = Time.zone.now\r\nmovie.cache_key\r\n```\r\n\r\n### Expected behavior\r\n\r\nIt should respect the defined alias and include the modified_date into the cache_key\r\n\r\n### Actual behavior\r\n\r\nIt does not include the modified_date\r\n\r\n### System configuration\r\n\r\nRails 4.2.7.1\r\nRuby 2.3.0"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/245222145","html_url":"https://github.com/rails/rails/issues/26417#issuecomment-245222145","issue_url":"https://api.github.com/repos/rails/rails/issues/26417","id":245222145,"user":{"login":"alexandru-calinoiu","id":679198,"avatar_url":"https://avatars.githubusercontent.com/u/679198?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandru-calinoiu","html_url":"https://github.com/alexandru-calinoiu","followers_url":"https://api.github.com/users/alexandru-calinoiu/followers","following_url":"https://api.github.com/users/alexandru-calinoiu/following{/other_user}","gists_url":"https://api.github.com/users/alexandru-calinoiu/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandru-calinoiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandru-calinoiu/subscriptions","organizations_url":"https://api.github.com/users/alexandru-calinoiu/orgs","repos_url":"https://api.github.com/users/alexandru-calinoiu/repos","events_url":"https://api.github.com/users/alexandru-calinoiu/events{/privacy}","received_events_url":"https://api.github.com/users/alexandru-calinoiu/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T09:12:51Z","updated_at":"2016-09-07T09:12:51Z","body":"In this case the `:updated_at` is the new attribute, as it does not exist the legacy database has `modified_date` column."}}
{"actor":{"display_login":"alexandru-calinoiu"}}