{"action":"created","issue":{"url":"https://api.github.com/repos/pokonski/public_activity/issues/193","labels_url":"https://api.github.com/repos/pokonski/public_activity/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/pokonski/public_activity/issues/193/comments","events_url":"https://api.github.com/repos/pokonski/public_activity/issues/193/events","html_url":"https://github.com/pokonski/public_activity/issues/193","id":53723189,"number":193,"title":"uninitialized constant PublicActivity::ORM","user":{"login":"asnad","id":1610771,"avatar_url":"https://avatars.githubusercontent.com/u/1610771?v=3","gravatar_id":"","url":"https://api.github.com/users/asnad","html_url":"https://github.com/asnad","followers_url":"https://api.github.com/users/asnad/followers","following_url":"https://api.github.com/users/asnad/following{/other_user}","gists_url":"https://api.github.com/users/asnad/gists{/gist_id}","starred_url":"https://api.github.com/users/asnad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asnad/subscriptions","organizations_url":"https://api.github.com/users/asnad/orgs","repos_url":"https://api.github.com/users/asnad/repos","events_url":"https://api.github.com/users/asnad/events{/privacy}","received_events_url":"https://api.github.com/users/asnad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-08T07:43:19Z","updated_at":"2015-02-24T09:35:06Z","closed_at":"2015-02-24T09:35:06Z","body":"Hi,\r\nI already have an table with name activities so I created public_activity.rb file with this line as some one suggested in an issue PublicActivity::ORM::ActiveRecord::Activity.table_name = \"notifications\"\r\nbut when I try to run \"rails g public_activity:migration notifications\" it fails because of a name error uninitialized constant PublicActivity::ORM (NameError). Any one can resolve this error.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pokonski/public_activity/issues/comments/75725058","html_url":"https://github.com/pokonski/public_activity/issues/193#issuecomment-75725058","issue_url":"https://api.github.com/repos/pokonski/public_activity/issues/193","id":75725058,"user":{"login":"pokonski","id":135402,"avatar_url":"https://avatars.githubusercontent.com/u/135402?v=3","gravatar_id":"","url":"https://api.github.com/users/pokonski","html_url":"https://github.com/pokonski","followers_url":"https://api.github.com/users/pokonski/followers","following_url":"https://api.github.com/users/pokonski/following{/other_user}","gists_url":"https://api.github.com/users/pokonski/gists{/gist_id}","starred_url":"https://api.github.com/users/pokonski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokonski/subscriptions","organizations_url":"https://api.github.com/users/pokonski/orgs","repos_url":"https://api.github.com/users/pokonski/repos","events_url":"https://api.github.com/users/pokonski/events{/privacy}","received_events_url":"https://api.github.com/users/pokonski/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T09:35:06Z","updated_at":"2015-02-24T09:35:06Z","body":"The command:\r\n```\r\nrails g public_activity:migration\r\n```\r\n\r\ndoes not accept any arguments. So `uninitialized constant PublicActivities` was happening because rails was trying to constantize the argument into a model class.\r\n\r\n\r\n@iwarshak could be it's autoloading issue. I'm closing this for now, if it happens again please respond here or create a new issue."}}