{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/f0ee12aab79b4688433297320dbcd7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f0ee12aab79b4688433297320dbcd7ee","url":"https://api.github.com/users/ritxi","login":"ritxi","id":145516},"milestone":null,"updated_at":"2011-11-06T13:39:35Z","labels":[],"assignee":null,"comments":3,"closed_at":"2011-11-06T13:04:55Z","url":"https://api.github.com/repos/bastiaanterhorst/rich/issues/2","body":"Looks like engine is not able to access this method.\r\n\r\nI've tried to create a module to share this method between main app and Rich::FilesController, but it's not working.\r\n\r\nI'm in rails 3.1 and activeadmin\r\n\r\nAny ideas?","html_url":"https://github.com/bastiaanterhorst/rich/issues/2","title":"undefined method `authenticate_admin_user!' for #<Rich::FilesController:0x007f8e6dd680a0>","number":2,"id":2127380,"created_at":"2011-11-02T22:33:21Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/f0ee12aab79b4688433297320dbcd7ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f0ee12aab79b4688433297320dbcd7ee","url":"https://api.github.com/users/ritxi","login":"ritxi","id":145516},"updated_at":"2011-11-06T13:39:35Z","url":"https://api.github.com/repos/bastiaanterhorst/rich/issues/comments/2645437","body":"I will work on it this afternoon. The problem is that I have a User model with a role field that I catch with the authenticate_admin_user! method","id":2645437,"created_at":"2011-11-06T13:39:35Z"}}